Struct ruma::events::pdu::RoomV3Pdu [−][src]
pub struct RoomV3Pdu {}Show fields
pub room_id: RoomId, pub sender: UserId, pub origin_server_ts: MilliSecondsSinceUnixEpoch, pub kind: EventType, pub content: Value, pub state_key: Option<String>, pub prev_events: Vec<EventId, Global>, pub depth: UInt, pub auth_events: Vec<EventId, Global>, pub redacts: Option<EventId>, pub unsigned: BTreeMap<String, Value>, pub hashes: EventHash, pub signatures: BTreeMap<Box<ServerName, Global>, BTreeMap<KeyId<SigningKeyAlgorithm, KeyName>, String>>,
events
only.Expand description
A ‘persistent data unit’ (event) for room versions 3 and beyond.
Fields
room_id: RoomId
The room this event belongs to.
sender: UserId
The user id of the user who sent 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: Value
The event’s content.
state_key: Option<String>
A key that determines which piece of room state the event represents.
prev_events: Vec<EventId, Global>
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, Global>
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, Value>
Additional data added by the origin server but not covered by the signatures.
hashes: EventHash
Content hashes of the PDU.
signatures: BTreeMap<Box<ServerName, Global>, BTreeMap<KeyId<SigningKeyAlgorithm, KeyName>, String>>
Signatures for the PDU.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RoomV3Pdu, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RoomV3Pdu, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomV3Pdu
impl UnwindSafe for RoomV3Pdu
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more