add skip serialization for opt value

This commit is contained in:
nextel 2019-09-22 17:05:30 +03:00
parent a777b3a805
commit a63fe51171

View file

@ -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>,
}