pub trait Name: Message {
const NAME: &'static str;
const PACKAGE: &'static str;
// Provided methods
fn full_name() -> String { ... }
fn type_url() -> String { ... }
}
Expand description
Associate a type name with a Message
type.
Required Associated Constants§
Provided Methods§
Sourcefn full_name() -> String
fn full_name() -> String
Fully-qualified unique name for this Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.
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.