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
Every field's type needs to implement the TypeDef trait in order for the derive to work, which NaiveDateTime doesn't because it comes from a different library. In that case, you can use the type_of option here, like so:
This tells the derive to generate types for that field that match the types of String, which seems to be appropriate here since NaiveDateTime serializes to a string.
Hi, firstly, thanks for creating this useful library. While using it, I have problem with TypeDef and Chrono. This is what I have:
I do have the lib chrono with features serde, and it prints out to string json just fine, but doesn't seem to work with derive TypeDef.
The text was updated successfully, but these errors were encountered: