pub trait DescribeMessage<T> {
const DESCRIPTION: MessageDescription<'static>;
}
Expand description
A trait for a self-describing protobuf message.
This can be derived for T
by deriving Protobuf
and
adding the attribute #[mesh(package = "my.package.name")]
.
Required Associated Constants§
Sourceconst DESCRIPTION: MessageDescription<'static>
const DESCRIPTION: MessageDescription<'static>
The message description.
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.