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 because the implementation of Default disagrees with the serde defaults.
The current workaround for this is to manually create the default implementation of B such that it agrees exactly with serde. On large and complex structs this is almost guaranteed to lead to errors.
It'd be great if serde provided derive support for Default that is aware of the serde default annotations.
The text was updated successfully, but these errors were encountered:
When using serde defaulting users currently have to manually create Default implementations that match the serde annotations.
For example:
The output is:
This is because the implementation of Default disagrees with the serde defaults.
The current workaround for this is to manually create the default implementation of B such that it agrees exactly with serde. On large and complex structs this is almost guaranteed to lead to errors.
It'd be great if serde provided derive support for
Default
that is aware of the serdedefault
annotations.The text was updated successfully, but these errors were encountered: