mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
add skip serialization for opt value
This commit is contained in:
parent
a777b3a805
commit
a63fe51171
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ pub struct RestrictChatMember<'a> {
|
|||
///Date when restrictions will be lifted for the user, unix time. If user
|
||||
/// is restricted for more than 366 days or less than 30 seconds from the
|
||||
/// current time, they are considered to be restricted forever
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub until_date: Option<u64>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue