Add missing skip_serializing_if = "Option::is_none

This commit is contained in:
Jonas Platte 2020-04-18 00:26:29 +02:00
parent 6ff7d3710b
commit 6452401add
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Breaking changes:
Improvements:
* Add types for User-Interactive Authentication API: `r0::account::{UserInteractiveAuthenticationInfo, AuthenticationFlow}`
* Add missing serde attributes to `get_content_thumbnail` query parameters
# 0.7.2

View File

@ -29,6 +29,7 @@ ruma_api! {
///
/// Used to prevent routing loops. Defaults to `true`.
#[ruma_api(query)]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_remote: Option<bool>,
/// The media ID from the mxc:// URI (the path component).
#[ruma_api(path)]
@ -42,6 +43,7 @@ ruma_api! {
pub height: UInt,
/// The desired resizing method.
#[ruma_api(query)]
#[serde(skip_serializing_if = "Option::is_none")]
pub method: Option<Method>,
/// The *desired* width of the thumbnail. The actual thumbnail may not match the size
/// specified.