pub trait DatumToProtoExtwhere
Self: ToDatumRef,{
// Required method
fn to_protobuf(&self) -> PbDatum;
}
Required Methods§
Sourcefn to_protobuf(&self) -> PbDatum
fn to_protobuf(&self) -> PbDatum
Convert the datum to the protobuf representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.