Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Deserializer for Map<String, Value> and &Map<String, Value> #1135

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

swlynch99
Copy link
Contributor

This PR adds Deserializer impls for Map<String, Value> and &Map<String, Value> and IntoDeserializer impls for the same. The first commit moves the relevant code from the value Deserializer impl into the new map impls. The last two are some small cleanups to use the map deserializer impl directly.

I put the Deserializer trait impls in src/value/de.rs so that they can reuse the existing helpers there. If you would prefer that they go elsewhere I am happy to move them.

Closes #1134

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit b4954a9 into serde-rs:master Oct 18, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Implement Deserializer for Map<String, Value> and &Map<String, Value>
2 participants