Fix missing serde(default) attributes
This commit is contained in:
parent
22ec1710b5
commit
7aec43c323
@ -28,7 +28,7 @@ pub struct DeviceKeys {
|
|||||||
|
|
||||||
/// Additional data added to the device key information by intermediate servers, and
|
/// Additional data added to the device key information by intermediate servers, and
|
||||||
/// not covered by the signatures.
|
/// not covered by the signatures.
|
||||||
#[serde(skip_serializing_if = "UnsignedDeviceInfo::is_empty")]
|
#[serde(default, skip_serializing_if = "UnsignedDeviceInfo::is_empty")]
|
||||||
pub unsigned: UnsignedDeviceInfo,
|
pub unsigned: UnsignedDeviceInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ ruma_api! {
|
|||||||
/// List of ephemeral messages.
|
/// List of ephemeral messages.
|
||||||
///
|
///
|
||||||
/// Must not be more than 100 items.
|
/// Must not be more than 100 items.
|
||||||
#[serde(skip_serializing_if = "<[_]>::is_empty")]
|
#[serde(default, skip_serializing_if = "<[_]>::is_empty")]
|
||||||
pub edus: &'a [Edu],
|
pub edus: &'a [Edu],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user