1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use serde::{Deserialize, Serialize}; use crate::types::user::User; /// This object represents one row of the high scores table for a game. /// /// [The official docs](https://core.telegram.org/bots/api#gamehighscore). #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub struct GameHighScore { /// Position in high score table for the game. pub position: u32, /// User. pub user: User, /// Score. pub score: u32, }