pub struct V12Pdu {
pub common: PduCommon,
pub prev_events: Vec<OwnedEventId>,
pub auth_events: Vec<OwnedEventId>,
pub depth: u64,
}Expand description
PDU representation for room version format V12.
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 V12Pdu
impl Event for V12Pdu
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 V12Pdu
impl RefUnwindSafe for V12Pdu
impl Send for V12Pdu
impl Sync for V12Pdu
impl Unpin for V12Pdu
impl UnsafeUnpin for V12Pdu
impl UnwindSafe for V12Pdu
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