1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Types for the *m.room.redaction* event. use ruma_events_macros::ruma_event; use ruma_identifiers::EventId; ruma_event! { /// A redaction of an event. RedactionEvent { kind: RoomEvent, event_type: "m.room.redaction", fields: { /// The ID of the event that was redacted. pub redacts: EventId, }, content: { /// The reason for the redaction, if any. #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, } } }