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
But there are duplication (like Tagged and tagged) in half enum variants and it isn't user-friendly (and in real life enum is much bigger and writing (de)serialization by hand can be painful)
The text was updated successfully, but these errors were encountered:
I think I would prefer not to build this into serde_derive — but there is room for someone to create a more fully featured derive macro that can accommodate such a representation.
I'm not sure it's even possible, but it would be nice to have "externally tagged" variants and "untagged" variants at the same time.
Example:
For now I'm just using
But there are duplication (like
Tagged
andtagged
) in half enum variants and it isn't user-friendly (and in real life enum is much bigger and writing (de)serialization by hand can be painful)The text was updated successfully, but these errors were encountered: