Trait ruma_events::Event

source ·
pub trait Eventwhere
    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; }
Expand description

A basic event.

Required Associated Types

The event-type-specific payload this event carries.

Required Methods

The event’s content.

The type of the event.

Implementors