Module ruma_events::pdu [−][src]
Expand description
Types for persistent data unit schemas
The differences between the RoomV1Pdu
schema and the RoomV3Pdu
schema are
that the RoomV1Pdu
takes an event_id
field (RoomV3Pdu
does not), and
auth_events
and prev_events
take Vec<(EventId, EventHash)> rather than
Vecin
RoomV3Pdu`.
The stubbed versions of each PDU type remove the event_id
field (if any)
and the room_id
field for use in PDU templates.
Structs
EventHash | Content hashes of a PDU. |
RoomV1Pdu | A ‘persistent data unit’ (event) for room versions 1 and 2. |
RoomV3Pdu | A ‘persistent data unit’ (event) for room versions 3 and beyond. |
Enums
Pdu | Enum for PDU schemas |