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

Support serde attributes #2

Open
8 of 18 tasks
msrd0 opened this issue Mar 21, 2021 · 0 comments
Open
8 of 18 tasks

Support serde attributes #2

msrd0 opened this issue Mar 21, 2021 · 0 comments

Comments

@msrd0
Copy link
Owner

msrd0 commented Mar 21, 2021

These seem to be the relevant attributes from https://serde.rs:

  • Container Attributes
    • rename
    • rename_all
    • deny_unknown_fields
    • tag / content / untagged
    • default (this might not be usable unless we force a Serialize type bound)
    • transparent
    • from / try_from / into
  • Variant Attributes
    • rename
    • rename_all
    • skip*
    • other (unsure about whether this should be in the spec at all, or if the default tag is already good enough for catchall-variants)
  • Field Attributes
    • rename
    • default / skip*
    • flatten
    • with* (unsure how to handle these - do we expect a visit_type method alongside the (de)serialize methods?)
@msrd0 msrd0 changed the title Support more serde attributes Support serde attributes Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant