Trait Message

Source
pub trait Message {
    // Required method
    fn typename() -> &'static str;
}
Expand description

A trait that must be implemented by all messages.

Messages sent to and received from Google Cloud services may be wrapped in Any. Any uses a @type field to encoding the type name and then validates extraction and insertion against this type.

Required Methods§

Source

fn typename() -> &'static str

The typename of this message.

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.

Implementors§