From ecf8e8c869e6bb0edbe5cdd22958978956d44399 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 27 May 2026 12:05:15 +0100 Subject: [PATCH] Comment why type_ --- rust/src/events/formats/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/src/events/formats/mod.rs b/rust/src/events/formats/mod.rs index c5998fd1d1..9215bf51c5 100644 --- a/rust/src/events/formats/mod.rs +++ b/rust/src/events/formats/mod.rs @@ -181,6 +181,9 @@ pub struct EventCommonFields { pub sender: Box, #[serde(skip_serializing_if = "Option::is_none")] pub state_key: Option>, + + /// The `type` field of the event (we use `type_` in Rust to avoid the + /// reserved keyword). #[serde(rename = "type")] pub type_: Box,