pub struct V3Pdu {
pub common: PduCommon,
pub prev_events: Vec<OwnedEventId>,
pub auth_events: Vec<OwnedEventId>,
pub depth: u64,
}Expand description
PDU representation for room version formats V3-V5.
Fields§
§common: PduCommonCommon PDU fields.
prev_events: Vec<OwnedEventId>Previous event IDs.
auth_events: Vec<OwnedEventId>Auth event IDs.
depth: u64Depth of the event
Trait Implementations§
Source§impl Event for V3Pdu
impl Event for V3Pdu
Source§fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
The time of creation on the originating server.
Source§fn event_type(&self) -> &TimelineEventType
fn event_type(&self) -> &TimelineEventType
The event type.
Source§fn content(&self) -> &RawJsonValue
fn content(&self) -> &RawJsonValue
The event’s content.
Source§fn prev_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
fn prev_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
The events before this event.
Source§fn auth_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
fn auth_events(&self) -> Box<dyn DoubleEndedIterator<Item = &Self::Id> + '_>
All the authenticating events for this event.
Auto Trait Implementations§
impl Freeze for V3Pdu
impl RefUnwindSafe for V3Pdu
impl Send for V3Pdu
impl Sync for V3Pdu
impl Unpin for V3Pdu
impl UnsafeUnpin for V3Pdu
impl UnwindSafe for V3Pdu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more