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
the untagged enum deserializer does NOT allow any idents, since these are interpreted as variant names, which we interpret as enums, while serde is looking for a struct (dang)
I have no idea how to solve this, @clouds56 do you have any ideas?
raw value inside an untagged enum
raw values are serialized without any indication that they exist, as is their purpose
untagged enums deserialize into serde's content type, which will parse the raw value's content as normal RON
the raw value cannot be deserialized from deserialized ron
e.g. "\"hi\"" is the raw value "\"hi\"" but the serde content "hi"
The following cases do not roundtrip:
PrettyConfig::default().struct_names(true), since"\"hi\""is the raw value"\"hi\""but the serde content"hi"