Does msgpack-rust support Deserialize/Serialize UUID for struct?
measproem opened this issue · 4 comments
measproem commented
Hi
I am new, does Msgpack-rust
support Deserialize/Serialize for struct
contain field data type uuid
Thank
kornelski commented
It supports every Rust type that implements serde
's Serialize/Deserialize.
Often you need to enable a Cargo feature of that types' crate to enable support.
measproem commented
I already enabled on Cargo file but for implement code can I have sample code? I tried many hours in google no luck.
I also looked to this: #[serde(with)]
kornelski commented
If you enable uuid/serde feature, it should just work. No attributes. It's supposed to serialize itself as easily as a String
.
measproem commented
Let me check more thank your replied