I started these changes mostly wanting to remove Deserialize trait from the AnyXYZ wrappers. As IMO trying to deserialize JSON back into AnyXYZ is dangerous; if both V1_0 & V1_1 variants are the same, then the serialized format is the same, so when deserializing serde cannot tell which variant it is, so it just picks the first one (misleading).
Also whilst i was here... i realised the Any wrappers were duplicating themselves alot, so i made a generic enum for it
I started these changes mostly wanting to remove
Deserialize
trait from theAnyXYZ
wrappers. As IMO trying to deserialize JSON back into AnyXYZ is dangerous; if both V1_0 & V1_1 variants are the same, then the serialized format is the same, so when deserializingserde
cannot tell which variant it is, so it just picks the first one (misleading).Also whilst i was here... i realised the Any wrappers were duplicating themselves alot, so i made a generic enum for it