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
Thanks to #1085, internally tagged unit structs are able to be deserialized properly.
However, this only works if the only key in the input is the tag name. If any other key exists, the serialization will fail. This issue does not occur when the newtype variant is an empty struct.
Ideally, the unit struct should also be able to ignore the extra key when serializing and succeed, since all information is known to serialize properly
The text was updated successfully, but these errors were encountered:
Thanks to #1085, internally tagged unit structs are able to be deserialized properly.
However, this only works if the only key in the input is the tag name. If any other key exists, the serialization will fail. This issue does not occur when the newtype variant is an empty struct.
Code to reproduce
Ideally, the unit struct should also be able to ignore the extra key when serializing and succeed, since all information is known to serialize properly
The text was updated successfully, but these errors were encountered: