mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
add serde derive for optional field
This commit is contained in:
parent
774c481faf
commit
7736ba3ca8
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ pub struct KickChatMember<'a> {
|
||||||
///Date when the user will be unbanned, unix time. If user is banned for
|
///Date when the user will be unbanned, unix time. If user is banned for
|
||||||
/// more than 366 days or less than 30 seconds from the current time they
|
/// more than 366 days or less than 30 seconds from the current time they
|
||||||
/// are considered to be banned forever
|
/// are considered to be banned forever
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub until_date: Option<u64>,
|
pub until_date: Option<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue