Trait Serialize
rusticata_macros
pub trait Serialize<O = Vec<u8>> { type Error; fn serialize(&self) -> Result<O, Self::Error>; }
Common trait for structures serialization
type Error
Type of serialization error
fn serialize(&self) -> Result<O, Self::Error>
Try to serialize object