ferrisgram 0.2.1

An elegent rust client for the Telegram Bot API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// WARNING: THIS CODE IS AUTOGENERATED.
// DO NOT EDIT!!!

use serde::{Deserialize, Serialize};

/// Describes the birthdate of a user.
/// <https://core.telegram.org/bots/api#birthdate>
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Birthdate {
    /// Day of the user's birth; 1-31
    pub day: i64,
    /// Month of the user's birth; 1-12
    pub month: i64,
    /// Optional. Year of the user's birth
    #[serde(skip_serializing_if = "Option::is_none")]
    pub year: Option<i64>,
}