pub struct RoomV1Pdu {Show 14 fields
pub event_id: OwnedEventId,
pub room_id: OwnedRoomId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub kind: TimelineEventType,
pub content: Box<RawValue>,
pub state_key: Option<String>,
pub prev_events: Vec<(OwnedEventId, EventHash)>,
pub depth: UInt,
pub auth_events: Vec<(OwnedEventId, EventHash)>,
pub redacts: Option<OwnedEventId>,
pub unsigned: BTreeMap<String, Box<RawValue>>,
pub hashes: EventHash,
pub signatures: Signatures<OwnedServerName, ServerSigningKeyVersion>,
}
events
and unstable-pdu
only.Expand description
A ‘persistent data unit’ (event) for room versions 1 and 2.
Fields§
§event_id: OwnedEventId
Event ID for the PDU.
room_id: OwnedRoomId
The room this event belongs to.
sender: OwnedUserId
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: TimelineEventType
The event’s type.
content: Box<RawValue>
The event’s content.
state_key: Option<String>
A key that determines which piece of room state the event represents.
prev_events: Vec<(OwnedEventId, 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<(OwnedEventId, EventHash)>
Event IDs for the authorization events that would allow this event to be in the room.
redacts: Option<OwnedEventId>
For redaction events, the ID of the event being redacted.
unsigned: BTreeMap<String, Box<RawValue>>
Additional data added by the origin server but not covered by the signatures.
hashes: EventHash
Content hashes of the PDU.
signatures: Signatures<OwnedServerName, ServerSigningKeyVersion>
Signatures for the PDU.