Struct ruma_events::pdu::RoomV1Pdu [−][src]
pub struct RoomV1Pdu {}Show fields
pub event_id: EventId, pub room_id: RoomId, pub sender: UserId, pub origin: String, pub origin_server_ts: MilliSecondsSinceUnixEpoch, pub kind: EventType, pub content: JsonValue, pub state_key: Option<String>, pub prev_events: Vec<(EventId, EventHash)>, pub depth: UInt, pub auth_events: Vec<(EventId, EventHash)>, pub redacts: Option<EventId>, pub unsigned: BTreeMap<String, JsonValue>, pub hashes: EventHash, pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerSigningKeyId, String>>,
Expand description
A ‘persistent data unit’ (event) for room versions 1 and 2.
Fields
event_id: EventId
Event ID for the PDU.
room_id: RoomId
The room this event belongs to.
sender: UserId
The user id of the user who sent this event.
origin: String
The server_name
of the homeserver that created this event.
origin_server_ts: MilliSecondsSinceUnixEpoch
Timestamp (milliseconds since the UNIX epoch) on originating homeserver of when this event was created.
kind: EventType
The event’s type.
content: JsonValue
The event’s content.
state_key: Option<String>
A key that determines which piece of room state the event represents.
prev_events: Vec<(EventId, EventHash)>
Event IDs for the most recent events in the room that the homeserver was aware of when it created this event.
depth: UInt
The maximum depth of the prev_events
, plus one.
auth_events: Vec<(EventId, EventHash)>
Event IDs for the authorization events that would allow this event to be in the room.
redacts: Option<EventId>
For redaction events, the ID of the event being redacted.
unsigned: BTreeMap<String, JsonValue>
Additional data added by the origin server but not covered by the signatures.
hashes: EventHash
Content hashes of the PDU.
signatures: BTreeMap<ServerNameBox, BTreeMap<ServerSigningKeyId, String>>
Signatures for the PDU.
Trait Implementations
impl<'de> Deserialize<'de> for RoomV1Pdu
[src]
impl<'de> Deserialize<'de> for RoomV1Pdu
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomV1Pdu
impl Send for RoomV1Pdu
impl Sync for RoomV1Pdu
impl Unpin for RoomV1Pdu
impl UnwindSafe for RoomV1Pdu
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,