pub trait DefaultSerialize: Serialize {
// Provided method
fn to_bytes(&self) -> Result<Box<[u8]>, Error> { ... }
}Available on crate feature
default-serialization only.Expand description
Default serialization of an object that is used in all the bindings. Uses MessagePack format.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.