pub trait Serialize { // Required method fn to_bytes(&self, data: &mut Vec<u8>) -> Result<(), SerializationError>; }