Trait rusticata_macros::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§