pub trait DefaultDeserialize<'de>: Deserialize<'de> {
// Provided method
fn from_bytes(bytes: &'de [u8]) -> Result<Self, Error> { ... }
}Available on crate feature
default-serialization only.Expand description
Default deserialization of an object that is used in all the bindings. Uses MessagePack format.
Provided Methods§
Sourcefn from_bytes(bytes: &'de [u8]) -> Result<Self, Error>
fn from_bytes(bytes: &'de [u8]) -> Result<Self, Error>
Deserializes a bytestring into this object.
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.