3Hren/msgpack-rust

Does msgpack-rust support Deserialize/Serialize UUID for struct?

measproem opened this issue · 4 comments

Hi
I am new, does Msgpack-rust support Deserialize/Serialize for struct contain field data type uuid

Thank

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.

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)]

If you enable uuid/serde feature, it should just work. No attributes. It's supposed to serialize itself as easily as a String.

Let me check more thank your replied