Trait ruma_state_res::Event[][src]

pub trait Event {
Show methods fn event_id(&self) -> &EventId;
fn room_id(&self) -> &RoomId;
fn sender(&self) -> &UserId;
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch;
fn kind(&self) -> EventType;
fn content(&self) -> Value;
fn state_key(&self) -> Option<String>;
fn prev_events(&self) -> Vec<EventId>;
fn depth(&self) -> &UInt;
fn auth_events(&self) -> Vec<EventId>;
fn redacts(&self) -> Option<&EventId>;
fn unsigned(&self) -> &BTreeMap<String, JsonValue>;
fn hashes(&self) -> &EventHash;
fn signatures(
    ) -> BTreeMap<Box<ServerName>, BTreeMap<ServerSigningKeyId, String>>;
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 kind of event.

The UserId of this PDU.

The state key for this event.

The events before this event.

The maximum number of prev_events plus 1.

This is only used in state resolution version 1.

All the authenticating events for this event.

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

The unsigned content of this event.

The content hash of this PDU.

A map of server names to another map consisting of the signing key id and finally the signature.