mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-03 17:04:44 +00:00
Comment why type_
This commit is contained in:
@@ -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>,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user