pub trait ProtoRepr: Sized + RustType<Self::Proto> {
type Proto: Message;
}
Expand description
A trait that declares that Self::Proto
is the default
Protobuf representation for Self
.
Required Associated Types§
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.