rust-tg-bot-raw 1.0.0-rc.1

Pure Telegram Bot API types and methods for Rust -- a faithful port of python-telegram-bot's core layer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

/// Describes the birthdate of a user.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
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,

    /// Year of the user's birth.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub year: Option<i64>,
}