pub trait Deserialize {
    // Required method
    fn deserialize<R>(
        raw: &mut Deserializer<R>
    ) -> Result<Self, DeserializeError>
       where R: BufRead + Seek,
             Self: Sized;

    // Provided method
    fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>
       where Self: Sized { ... }
}

Required Methods§

source

fn deserialize<R>(raw: &mut Deserializer<R>) -> Result<Self, DeserializeError>
where R: BufRead + Seek, Self: Sized,

Provided Methods§

source

fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>
where Self: Sized,

from-bytes using the exact CBOR format specified in the CDDL binary spec. For hashes/addresses/etc this will include the CBOR bytes type/len/etc.

Implementors§