serde
serde copied to clipboard
Add more tests for flatten enums to increase test coverage
This PR adds more tests for enum flatten into the struct (each in their own commit):
- Ensure, that serialization produces output that can be deserialized
- Ensure, that any order of fields in the serialized form for
can be deserializedstruct Flatten { #[serde(flatten)] data: Enum, other_fields: ..., } - Ensure, that
Enum::Unitcan be deserialized whenEnumis flatten like above