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

    fn serialize(&self) -> Result<O, Self::Error>;
}
Expand description

Common trait for structures serialization

Required Associated Types

Type of serialization error

Required Methods

Try to serialize object

Implementors