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
#[derive(YaDeserialize)]#[yaserde(rename = "item")]structItem{id:String,}#[derive(YaDeserialize)]#[yaserde(rename = "root")]structRoot{/// Some yaserde attribute or custom deserializer to get rid of the `ignored` container.items:Vec<Item>,}
Adding a custom deserializer for a newtype doesn't feel much better than just declaring the container type, and there doesn't seem to be an equivalent of serde's deserialize_with attribute.
Presuming there isn't a good way of handling this already, would you be interested in a PR to allow users to ignore containers like this?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, I'd like to handle this kind of deserialization:
Adding a custom deserializer for a newtype doesn't feel much better than just declaring the container type, and there doesn't seem to be an equivalent of serde's
deserialize_with
attribute.Presuming there isn't a good way of handling this already, would you be interested in a PR to allow users to ignore containers like this?
Thanks.
The text was updated successfully, but these errors were encountered: