Add missing skip_serializing_if = "Option::is_none
This commit is contained in:
parent
6ff7d3710b
commit
6452401add
@ -20,6 +20,7 @@ Breaking changes:
|
|||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
* Add types for User-Interactive Authentication API: `r0::account::{UserInteractiveAuthenticationInfo, AuthenticationFlow}`
|
* Add types for User-Interactive Authentication API: `r0::account::{UserInteractiveAuthenticationInfo, AuthenticationFlow}`
|
||||||
|
* Add missing serde attributes to `get_content_thumbnail` query parameters
|
||||||
|
|
||||||
# 0.7.2
|
# 0.7.2
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ ruma_api! {
|
|||||||
///
|
///
|
||||||
/// Used to prevent routing loops. Defaults to `true`.
|
/// Used to prevent routing loops. Defaults to `true`.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub allow_remote: Option<bool>,
|
pub allow_remote: Option<bool>,
|
||||||
/// The media ID from the mxc:// URI (the path component).
|
/// The media ID from the mxc:// URI (the path component).
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
@ -42,6 +43,7 @@ ruma_api! {
|
|||||||
pub height: UInt,
|
pub height: UInt,
|
||||||
/// The desired resizing method.
|
/// The desired resizing method.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub method: Option<Method>,
|
pub method: Option<Method>,
|
||||||
/// The *desired* width of the thumbnail. The actual thumbnail may not match the size
|
/// The *desired* width of the thumbnail. The actual thumbnail may not match the size
|
||||||
/// specified.
|
/// specified.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user