You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm dealing with files where the enums were sometimes serialized to floats instead of ints. I all ready have a function that I use with #[serde(deserialize_with = "path")] and would like to reuse it with Deserialize_repr. Maybe calling the attribute "deserialize_repr_with"?
The macro would then swap out match <#repr as serde::Deserialize>::deserialize(deserializer)? {
with a call to the "deserialize_repr_with" function.
The text was updated successfully, but these errors were encountered:
I'm dealing with files where the enums were sometimes serialized to floats instead of ints. I all ready have a function that I use with #[serde(deserialize_with = "path")] and would like to reuse it with Deserialize_repr. Maybe calling the attribute "deserialize_repr_with"?
The macro would then swap out
match <#repr as serde::Deserialize>::deserialize(deserializer)? {
with a call to the "deserialize_repr_with" function.
The text was updated successfully, but these errors were encountered: