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§
Sourcefn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Get the origin_server_ts field of the event
Sourcefn auth_events(&self) -> &EventRefs
fn auth_events(&self) -> &EventRefs
Get the auth_events field of the event
Sourcefn prev_events(&self) -> &EventRefs
fn prev_events(&self) -> &EventRefs
Get the prev_events field of the event
Sourcefn room_version(&self) -> KnownRoomVersionId
fn room_version(&self) -> KnownRoomVersionId
Get the room_version field of the event
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".