client-api: Skip avatar_url in set_avatar_url request serialization if it's None

This commit is contained in:
Jonas Platte 2021-02-18 12:30:02 +01:00
parent e659df73a1
commit 6dd738c315
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -21,6 +21,7 @@ ruma_api! {
/// The new avatar URL for the user.
///
/// `None` is used to unset the avatar.
#[serde(skip_serializing_if = "Option::is_none")]
pub avatar_url: Option<&'a str>,
}