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
This continues #690. @dtolnay recommended using a Deserializer adapter as a solution, but I'm not sure how it helps. I don't think there's any Deserialize method that could be used for this behaviour.
No need to have a step to extract field from an Option or check if there is a default fallback for said field.
There are some significant downsides to implementing one's own custom derive macro -- I haven't implemented many of serde's field / container attributes. I've also only gotten duplicated to work for the Vec containers. So if there does exist a Deserializer adapter for a solution, I'd love to see it!
This continues #690. @dtolnay recommended using a Deserializer adapter as a solution, but I'm not sure how it helps. I don't think there's any
Deserialize
method that could be used for this behaviour.Here's an possible implementation on the playground
The text was updated successfully, but these errors were encountered: