Trait redgold_schema::ProtoSerde
source · pub trait ProtoSerdewhere
Self: Message + Default,{
// Required methods
fn proto_serialize(&self) -> Vec<u8>;
fn proto_deserialize(bytes: Vec<u8>) -> Result<Self, ErrorInfo>;
fn proto_deserialize_ref(bytes: &Vec<u8>) -> Result<Self, ErrorInfo>;
}Required Methods§
fn proto_serialize(&self) -> Vec<u8>
fn proto_deserialize(bytes: Vec<u8>) -> Result<Self, ErrorInfo>
fn proto_deserialize_ref(bytes: &Vec<u8>) -> Result<Self, ErrorInfo>
Object Safety§
This trait is not object safe.