events: Box optional bundled relations

These fields are much more commonly None than Some(_).
This commit is contained in:
Jonas Platte 2022-12-15 16:29:26 +01:00 committed by Jonas Platte
parent 190205cfb1
commit d20f42617c

View File

@ -291,19 +291,19 @@ pub struct BundledRelations {
/// Annotation relations.
#[cfg(feature = "unstable-msc2677")]
#[serde(rename = "m.annotation", skip_serializing_if = "Option::is_none")]
pub annotation: Option<AnnotationChunk>,
pub annotation: Option<Box<AnnotationChunk>>,
/// Replacement relation.
#[serde(rename = "m.replace", skip_serializing_if = "Option::is_none")]
pub replace: Option<BundledReplacement>,
pub replace: Option<Box<BundledReplacement>>,
/// Thread relation.
#[serde(rename = "m.thread", skip_serializing_if = "Option::is_none")]
pub thread: Option<BundledThread>,
pub thread: Option<Box<BundledThread>>,
/// Reference relations.
#[serde(rename = "m.reference", skip_serializing_if = "Option::is_none")]
pub reference: Option<ReferenceChunk>,
pub reference: Option<Box<ReferenceChunk>>,
}
impl BundledRelations {