events: Don't serialize event_type inside content for unsupported events

This commit is contained in:
Jonas Platte 2021-08-22 14:12:36 +02:00
parent 18127be03c
commit f3e52e4bc3
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -404,7 +404,10 @@ fn expand_content_enum(
#variant_decls(#content),
)*
#[doc(hidden)]
_Custom { event_type: ::std::string::String },
_Custom {
#[serde(skip)]
event_type: ::std::string::String,
},
}
};
@ -466,7 +469,10 @@ fn expand_content_enum(
#variant_decls(#redacted_content),
)*
#[doc(hidden)]
_Custom { event_type: ::std::string::String },
_Custom {
#[serde(skip)]
event_type: ::std::string::String,
},
}
impl #ruma_events::RedactContent for #ident {