pub trait ProtoMessage: InputNode {
// Required method
fn proto_message_type() -> &'static str;
}Expand description
Trait for all Rust types that represent protobuf messages. These are always structs for which all fields implement InputNode.
Required Methods§
Sourcefn proto_message_type() -> &'static str
fn proto_message_type() -> &'static str
Returns the protobuf type name for messages of this type.
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.