Skip to content

Support deserializing enum out of MapAccessDeserializer#1522

Merged
dtolnay merged 1 commit intoserde-rs:masterfrom
dtolnay:enum
May 6, 2019
Merged

Support deserializing enum out of MapAccessDeserializer#1522
dtolnay merged 1 commit intoserde-rs:masterfrom
dtolnay:enum

Conversation

@dtolnay
Copy link
Copy Markdown
Member

@dtolnay dtolnay commented May 6, 2019

StringDeserializer implements deserialize_enum for deserializing unit variants out of a string, so it seems reasonable for MapAccessDeserializer to implement deserialize_enum for deserializing the other kinds of variants out of a map.

https://users.rust-lang.org/t/serde-custom-deserialize-untagged-enum-with-tagged-variant/28003

@dtolnay dtolnay merged commit c8e09e2 into serde-rs:master May 6, 2019
@dtolnay dtolnay deleted the enum branch May 6, 2019 23:26
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.

1 participant