Update serde attrs in receipt
This commit is contained in:
parent
9b91529e36
commit
db91721fab
@ -32,8 +32,7 @@ ruma_event! {
|
|||||||
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
|
||||||
pub struct Receipts {
|
pub struct Receipts {
|
||||||
/// A collection of users who have sent *m.read* receipts for this event.
|
/// A collection of users who have sent *m.read* receipts for this event.
|
||||||
#[serde(rename = "m.read")]
|
#[serde(default, rename = "m.read")]
|
||||||
#[serde(default)]
|
|
||||||
pub read: Option<UserReceipts>,
|
pub read: Option<UserReceipts>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user