Trait ruma_events::Event [] [src]

pub trait Event where
    Self: Debug + for<'a> Deserialize<'a> + Serialize
{ type Content: Debug + for<'a> Deserialize<'a> + Serialize; fn content(&self) -> &Self::Content; fn event_type(&self) -> &EventType; fn extra_content(&self) -> Option<Value> { ... } }

A basic event.

Associated Types

The event-type-specific payload this event carries.

Required Methods

The event's content.

The type of the event.

Provided Methods

Extra top-level key-value pairs specific to this event type, but that are not under the content field.

Implementors