Trait zksync_protobuf::ProtoFmt
source · pub trait ProtoFmt: Sized {
type Proto: ReflectMessage + Default;
// Required methods
fn read(r: &Self::Proto) -> Result<Self>;
fn build(&self) -> Self::Proto;
}
Expand description
Trait defining a proto representation for a type.
Required Associated Types§
sourcetype Proto: ReflectMessage + Default
type Proto: ReflectMessage + Default
Proto message type representing Self.
Required Methods§
Object Safety§
This trait is not object safe.