pub trait InboundMessage: Clone + Send {
// Required methods
fn session_key(&self) -> String;
fn content(&self) -> &str;
// Provided methods
fn media(&self) -> &[String] { ... }
fn metadata(&self) -> &HashMap<String, Value> { ... }
}Expand description
Trait for inbound messages
Required Methods§
Sourcefn session_key(&self) -> String
fn session_key(&self) -> String
Get the session key for this message
Provided Methods§
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.