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, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn depth(&self) -> &UInt;
fn auth_events(&self) -> Vec<EventId, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn redacts(&self) -> Option<&EventId>;
fn unsigned(&self) -> &BTreeMap<String, Value>;
fn hashes(&self) -> &EventHash;
fn signatures(
        &self
    ) -> BTreeMap<Box<ServerName, Global>, BTreeMap<KeyId<SigningKeyAlgorithm, KeyName>, String>>;
}
This is supported on crate feature state-res only.
Expand description

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

Required methods

fn event_id(&self) -> &EventId[src]

The EventId of this event.

fn room_id(&self) -> &RoomId[src]

The RoomId of this event.

fn sender(&self) -> &UserId[src]

The UserId of this event.

fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch[src]

The time of creation on the originating server.

fn kind(&self) -> EventType[src]

The kind of event.

fn content(&self) -> Value[src]

The UserId of this PDU.

fn state_key(&self) -> Option<String>[src]

The state key for this event.

fn prev_events(&self) -> Vec<EventId, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

The events before this event.

fn depth(&self) -> &UInt[src]

The maximum number of prev_events plus 1.

This is only used in state resolution version 1.

fn auth_events(&self) -> Vec<EventId, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

All the authenticating events for this event.

fn redacts(&self) -> Option<&EventId>[src]

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

fn unsigned(&self) -> &BTreeMap<String, Value>[src]

The unsigned content of this event.

fn hashes(&self) -> &EventHash[src]

fn signatures(
    &self
) -> BTreeMap<Box<ServerName, Global>, BTreeMap<KeyId<SigningKeyAlgorithm, KeyName>, String>>
[src]

Implementors