Trait ruma_state_res::Event[][src]

pub trait Event {
    fn event_id(&self) -> &EventId;
fn room_id(&self) -> &RoomId;
fn sender(&self) -> &UserId;
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch;
fn event_type(&self) -> &EventType;
fn content(&self) -> &RawJsonValue;
fn state_key(&self) -> Option<&str>;
fn prev_events(&self) -> Box<dyn DoubleEndedIterator<Item = &EventId>>;
fn auth_events(&self) -> Box<dyn DoubleEndedIterator<Item = &EventId>>;
fn redacts(&self) -> Option<&EventId>; }
Expand description

Abstraction of a PDU so users can have their own PDU types.

Required methods

The EventId of this event.

The RoomId of this event.

The UserId of this event.

The time of creation on the originating server.

The event type.

The event’s content.

The state key for this event.

The events before this event.

All the authenticating events for this event.

If this event is a redaction event this is the event it redacts.

Implementations on Foreign Types