rustigram-types 0.10.2

Telegram Bot API type definitions for rustigram
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::user::User;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
/// One entry in a game high score table.
///
/// Returned as a list by [`getGameHighScores`](https://core.telegram.org/bots/api#getgamehighscores).
pub struct GameHighScore {
    /// Position in the high score table.
    pub position: u32,
    /// The user at this position.
    pub user: User,
    /// Score of the user.
    pub score: i64,
}