core_lib::events

Trait Publishable

Source
pub trait Publishable: Serialize {
    // Required methods
    fn entity_id(&self) -> &str;
    fn topic(&self) -> &str;
}

Required Methods§

Source

fn entity_id(&self) -> &str

Source

fn topic(&self) -> &str

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§