skip serializing None query parameters
This commit is contained in:
parent
fa859f616a
commit
ade43f2a97
|
@ -191,18 +191,22 @@ pub struct VerifyUserEmailChangeResponse {
|
||||||
///
|
///
|
||||||
/// See <https://docs.discord.sex/resources/user#get-user-profile>
|
/// See <https://docs.discord.sex/resources/user#get-user-profile>
|
||||||
pub struct GetUserProfileSchema {
|
pub struct GetUserProfileSchema {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
/// Whether to include the mutual guilds between the current user.
|
/// Whether to include the mutual guilds between the current user.
|
||||||
///
|
///
|
||||||
/// If unset it will default to true
|
/// If unset it will default to true
|
||||||
pub with_mutual_guilds: Option<bool>,
|
pub with_mutual_guilds: Option<bool>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
/// Whether to include the mutual friends between the current user.
|
/// Whether to include the mutual friends between the current user.
|
||||||
///
|
///
|
||||||
/// If unset it will default to false
|
/// If unset it will default to false
|
||||||
pub with_mutual_friends: Option<bool>,
|
pub with_mutual_friends: Option<bool>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
/// Whether to include the number of mutual friends between the current user
|
/// Whether to include the number of mutual friends between the current user
|
||||||
///
|
///
|
||||||
/// If unset it will default to false
|
/// If unset it will default to false
|
||||||
pub with_mutual_friends_count: Option<bool>,
|
pub with_mutual_friends_count: Option<bool>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
/// The guild id to get the user's member profile in, if any.
|
/// The guild id to get the user's member profile in, if any.
|
||||||
///
|
///
|
||||||
/// Note:
|
/// Note:
|
||||||
|
@ -212,6 +216,7 @@ pub struct GetUserProfileSchema {
|
||||||
///
|
///
|
||||||
/// This makes the request include fields such as guild_member and guild_member_profile
|
/// This makes the request include fields such as guild_member and guild_member_profile
|
||||||
pub guild_id: Option<Snowflake>,
|
pub guild_id: Option<Snowflake>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
/// The role id to get the user's application role connection metadata in, if any.
|
/// The role id to get the user's application role connection metadata in, if any.
|
||||||
pub connections_role_id: Option<Snowflake>,
|
pub connections_role_id: Option<Snowflake>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue