mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
added skip_serializing_if to Option<> fields
This commit is contained in:
parent
2cb5adeebe
commit
6467f03978
1 changed files with 8 additions and 0 deletions
|
@ -1,11 +1,19 @@
|
|||
#[derive(Debug, Deserialize, Hash, PartialEq, Eq, Serialize, Clone)]
|
||||
pub struct ChatPermissions {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_send_messages: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_send_media_messages: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_send_polls: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_send_other_messages: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_add_web_page_previews: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_change_info: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_invite_users: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub can_pin_messages: Option<bool>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue