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; }

A basic event.

Associated Types

The event-type-specific payload this event carries.

Required Methods

The event's content.

The type of the event.

Implementors