rocket::mtls::x509::der_parser::rusticata_macros

Trait Serialize

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

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

Common trait for structures serialization

Required Associated Types§

Source

type Error

Type of serialization error

Required Methods§

Source

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

Try to serialize object

Implementors§