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
When trying to deserialize/serialize something with a custom handler for a field in a struct that needs to be handled by serde (specifically in my case chrono::DateTime encoded with ts_milliseconds), it doesn't work. I had to wrap my DateTime<> members in a wrapper struct that I wrote. Not doing this causes huge performance problems as the default encoding / decoding is string based.
I can provide a working example if desired, but here's a snippet from my code reflecting my workaround:
When trying to deserialize/serialize something with a custom handler for a field in a struct that needs to be handled by serde (specifically in my case chrono::DateTime encoded with ts_milliseconds), it doesn't work. I had to wrap my DateTime<> members in a wrapper struct that I wrote. Not doing this causes huge performance problems as the default encoding / decoding is string based.
I can provide a working example if desired, but here's a snippet from my code reflecting my workaround:
I would much rather it be:
Thank you for the excellent project by the way, I love the 2.0 can't wait to see it release.
The text was updated successfully, but these errors were encountered: