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,