pub trait ProtoStruct: IsMessage {
type Fields<'a>: IntoIterator<Item = (NonZeroU32, &'a (dyn ProtoEncode + 'a))> + 'a
where Self: 'a;
// Required method
fn fields(&self) -> Self::Fields<'_>;
}Expand description
Minimal set of methods needed to derive a prost::Message implementation for T: ProtoStruct.
Required Associated Types§
type Fields<'a>: IntoIterator<Item = (NonZeroU32, &'a (dyn ProtoEncode + 'a))> + 'a where Self: 'a
Required Methods§
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.