-
Notifications
You must be signed in to change notification settings - Fork 745
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
Allow rename with str|bool|int type for internally tagged enums #1392
Closed
Closed
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
47fd94f
Add new struct for enum variants values
NotBad4U bc1a59b
Add a check to prevent the use of int|bool in variant name for extern…
NotBad4U c9f6cae
Add serde export method to support convertion from int|bool for inter…
NotBad4U 8c067d8
Add a new unit test for internally tagged enum renamed with an int|bool
NotBad4U 268b8a0
Modify the variant type name to accept int|bool|str in internally tag…
NotBad4U 791822b
Modify deserialize_identifier to work with VariantNameType
NotBad4U c08234b
Add new type and struct cases in internally tagged enum renamed unit …
NotBad4U b127a17
Modify the serialization of variant new type and struct in internally…
NotBad4U b495c5b
deserialize identifiers with the correct deserializer instead of usin…
NotBad4U c754e6b
Remove unreachable pattern in deserialize::visit_bool
NotBad4U 95344ca
Omit visitors when we don't need them
NotBad4U 1d0146b
Add guard on fields when we generate the serde_deserializer
NotBad4U File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
visit_bytes
use theconstructors_strs
too so I put them together.