Serialize

Trait Serialize 

pub trait Serialize<O = Vec<u8>> {
    type Error;

    // Required method
    fn serialize(&self) -> Result<O, Self::Error>;
}
Available on (crate features rustls or boring or acme) and crate feature rustls only.
Expand description

Common trait for structures serialization

Required Associated Types§

type Error

Type of serialization error

Required Methods§

fn serialize(&self) -> Result<O, Self::Error>

Try to serialize object

Implementors§