client-api: Skip avatar_url in set_avatar_url request serialization if it's None
This commit is contained in:
parent
e659df73a1
commit
6dd738c315
@ -21,6 +21,7 @@ ruma_api! {
|
|||||||
/// The new avatar URL for the user.
|
/// The new avatar URL for the user.
|
||||||
///
|
///
|
||||||
/// `None` is used to unset the avatar.
|
/// `None` is used to unset the avatar.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub avatar_url: Option<&'a str>,
|
pub avatar_url: Option<&'a str>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user