rustigram_types/games.rs
1use crate::user::User;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
5/// One entry in a game high score table.
6///
7/// Returned as a list by [`getGameHighScores`](https://core.telegram.org/bots/api#getgamehighscores).
8pub struct GameHighScore {
9 /// Position in the high score table.
10 pub position: u32,
11 /// The user at this position.
12 pub user: User,
13 /// Score of the user.
14 pub score: i64,
15}