pub trait DescribedProtobuf: Protobuf {
const DESCRIPTION: MessageDescription<'static>;
const TYPE_URL: TypeUrl<'static> = _;
}
Expand description
Trait for types implementing Protobuf
and having an associated protobuf
message description.
Required Associated Constants§
Sourceconst DESCRIPTION: MessageDescription<'static>
const DESCRIPTION: MessageDescription<'static>
The message description.
Provided Associated Constants§
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.