1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use serde::Serialize;

/// Represents an [`InlineQueryResultGame`][docs].
///
/// [docs]: https://core.telegram.org/bots/api#inlinequeryresultgame
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Serialize)]
pub struct Game<'a> {
    game_short_name: &'a str,
}

impl<'a> Game<'a> {
    /// Constructs a `Game`.
    pub const fn new(game_short_name: &'a str) -> Self {
        Self { game_short_name }
    }
}