conogram/entities/
game_high_score.rs

1use serde::{Deserialize, Serialize};
2
3use crate::entities::user::User;
4
5/// This object represents one row of the high scores table for a game.
6///
7/// API Reference: [link](https://core.telegram.org/bots/api/#gamehighscore)
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9pub struct GameHighScore {
10    /// Position in high score table for the game
11    pub position: i64,
12
13    /// User
14    pub user: User,
15
16    /// Score
17    pub score: i64,
18}
19
20// Divider: all content below this line will be preserved after code regen