more serde support? #3535
Closed
drHuangMHT
started this conversation in
General
Replies: 2 comments 9 replies
-
Which types would you like to serialize? I don't think we should eagerly implement It is an API commitment that might make any internal changes to the type later a breaking change. |
Beta Was this translation helpful? Give feedback.
3 replies
-
For types that dont implement serde, you can always make your own wrapper to map to those types. The other option, depending on the type, would be to manually implement serialize and deserialize so you can handle those fields directly. This is what I generally do |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A lot of types that can implement
Serialize
andDeserialize
through derive macro don't have the traits implemented. Considering there's a feature that enables support for serde, I think it's a good idea to have the traits implemented when deriving is possible.If that's not favorable, I'll consider defining the types I need on my own and implement
From
andInto
. Is there any better idea?Beta Was this translation helpful? Give feedback.
All reactions