diff --git a/rust/src/events/formats/mod.rs b/rust/src/events/formats/mod.rs index b44fce8082..537a053da9 100644 --- a/rust/src/events/formats/mod.rs +++ b/rust/src/events/formats/mod.rs @@ -97,15 +97,19 @@ pub use vmsc4242::EventFormatVMSC4242; /// flat object matching the Matrix spec. #[derive(Serialize, Deserialize)] pub struct FormattedEvent> { + /// The event's signatures. This is a mutable field. #[serde(default)] pub signatures: Signatures, + /// The event's unsigned data. This is a mutable field. #[serde(default)] pub unsigned: Unsigned, + /// The format-specific fields of the event. This is an immutable field. #[serde(flatten)] pub specific_fields: E, + /// The fields common to all event formats. This is an immutable field. #[serde(flatten)] pub common_fields: Arc, }