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
While code for a schema with recursion is currently generated, it can not compile.
It can be fixed manually by saving the code with the store_generated_code option and then adding a Box around the compilation issue.
Furthermore a custom YaSerialize and YaDeserialize has to be implemented for every boxed type, because yaserde is not supporting Box currently.
Adding the boxed serialization can be done like this:
While code for a schema with recursion is currently generated, it can not compile.
It can be fixed manually by saving the code with the
store_generated_code
option and then adding aBox
around the compilation issue.Furthermore a custom
YaSerialize
andYaDeserialize
has to be implemented for every boxed type, because yaserde is not supporting Box currently.Adding the boxed serialization can be done like this:
Because I had no usecase for the attribute, I have no code example for the serialization of these.
An automatic wrapping of these types into Box would allow easier use of this crate.
The text was updated successfully, but these errors were encountered: