pub struct V1Pdu {
pub common: PduCommon,
pub prev_events: Vec<OwnedEventId>,
pub auth_events: Vec<OwnedEventId>,
pub depth: u64,
}Expand description
PDU representation for room version formats V1/V2.
Fields§
§common: PduCommonCommon PDU fields.
prev_events: Vec<OwnedEventId>Previous event references with hashes.
auth_events: Vec<OwnedEventId>Auth event references with hashes.
depth: u64Depth of the event
Trait Implementations§
Source§impl Event for V1Pdu
impl Event for V1Pdu
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 V1Pdu
impl RefUnwindSafe for V1Pdu
impl Send for V1Pdu
impl Sync for V1Pdu
impl Unpin for V1Pdu
impl UnsafeUnpin for V1Pdu
impl UnwindSafe for V1Pdu
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