pub trait Deserialize: Sized {
    type Error;

    // Required method
    fn deserialize(env: &Env, b: &Bytes) -> Result<Self, Self::Error>;
}
Expand description

Implemented by types that can be deserialized from Bytes.

All types that are convertible from RawVal are implemented.

Required Associated Types§

Required Methods§

source

fn deserialize(env: &Env, b: &Bytes) -> Result<Self, Self::Error>

Implementors§

source§

impl<T> Deserialize for Twhere T: TryFromVal<Env, RawVal>,

§

type Error = <T as TryFromVal<Env, RawVal>>::Error