Open clbarnes opened 5 years ago
In cases where a struct is being deserialised directly, this can be placed above individual fields:
#[serde(deserialize_with = "from_str")]
But NodeType
doesn't necessarily implement FromStr
, and adding it everywhere in the library would be a pain given it's only used in integration tests.
SynapseClustering::find_axon
's reference JSON has a bunch of stuff as strings, deserialising it is tricky.