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
This is unfortunately serde's fault and ron cannot do anything about it.
When a struct contains any flattened fields, serde serializes it as a map (since serializing a struct requires having statically known field names) and not a struct. From ron's point of view, we just get a map from serde and have no idea that it was ever a struct.
Struct without flatten field serialized as struct:
Result:
Struct containing flatten field serialized as JSON:
Result:
May be it would be better to see it as (literally ignore the flatten attribute for the fields on serialization may be optionally):
The text was updated successfully, but these errors were encountered: