Comment why type_

This commit is contained in:
Erik Johnston
2026-05-27 12:05:15 +01:00
parent 309f826d21
commit ecf8e8c869
+3
View File
@@ -181,6 +181,9 @@ pub struct EventCommonFields {
pub sender: Box<str>,
#[serde(skip_serializing_if = "Option::is_none")]
pub state_key: Option<Box<str>>,
/// The `type` field of the event (we use `type_` in Rust to avoid the
/// reserved keyword).
#[serde(rename = "type")]
pub type_: Box<str>,