Merge serde attributes
This commit is contained in:
parent
d837384e58
commit
037a4faa6e
@ -175,8 +175,7 @@ pub(crate) mod raw {
|
|||||||
/// Rooms with `alias: None` should be treated the same as a room with no canonical alias.
|
/// Rooms with `alias: None` should be treated the same as a room with no canonical alias.
|
||||||
// The spec says "A room with an m.room.canonical_alias event with an absent, null, or empty
|
// The spec says "A room with an m.room.canonical_alias event with an absent, null, or empty
|
||||||
// alias field should be treated the same as a room with no m.room.canonical_alias event."
|
// alias field should be treated the same as a room with no m.room.canonical_alias event."
|
||||||
#[serde(default)]
|
#[serde(default, deserialize_with = "empty_string_as_none")]
|
||||||
#[serde(deserialize_with = "empty_string_as_none")]
|
|
||||||
pub alias: Option<RoomAliasId>,
|
pub alias: Option<RoomAliasId>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user