Skip to main content

ContextualizedFields

Trait ContextualizedFields 

Source
pub trait ContextualizedFields: DraftFields {
    // Required methods
    fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch;
    fn auth_events(&self) -> &EventRefs;
    fn prev_events(&self) -> &EventRefs;
    fn depth(&self) -> u64;
    fn room_version(&self) -> KnownRoomVersionId;
    fn event_id(&self) -> &EventId;
    fn room_id(&self) -> &RoomId;
    fn hashes(&self) -> &EventHash;
}
Expand description

A trait which accesses fields of a contextualized event

Required Methods§

Source

fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch

Get the origin_server_ts field of the event

Source

fn auth_events(&self) -> &EventRefs

Get the auth_events field of the event

Source

fn prev_events(&self) -> &EventRefs

Get the prev_events field of the event

Source

fn depth(&self) -> u64

Get the depth field of the event

Source

fn room_version(&self) -> KnownRoomVersionId

Get the room_version field of the event

Source

fn event_id(&self) -> &EventId

Get the ID of the event

Source

fn room_id(&self) -> &RoomId

Get the ID of the room

Source

fn hashes(&self) -> &EventHash

Get the content hash of the event

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§