events: Box optional bundled relations
These fields are much more commonly None than Some(_).
This commit is contained in:
parent
190205cfb1
commit
d20f42617c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user