Trait GlobalAccountDataEventContent

pub trait GlobalAccountDataEventContent: Sized + Serialize {
    // Required method
    fn event_type(&self) -> GlobalAccountDataEventType;
}
Expand description

Content of a global account-data event.

Required Methods§

fn event_type(&self) -> GlobalAccountDataEventType

Get the event’s type, like m.push_rules.

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.

Implementations on Foreign Types§

Source§

impl GlobalAccountDataEventContent for RecentEmojisContent

Implementors§