rusticata_macros

Trait Serialize

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

    // Required method
    fn serialize(&self) -> Result<O, Self::Error>;
}
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§