Struct rust_tdlib::types::Game
source · pub struct Game { /* private fields */ }
Expand description
Describes a game
Implementations§
source§impl Game
impl Game
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> GameBuilder
pub fn id(&self) -> i64
pub fn short_name(&self) -> &String
pub fn title(&self) -> &String
pub fn text(&self) -> &FormattedText
pub fn description(&self) -> &String
pub fn photo(&self) -> &Photo
pub fn animation(&self) -> &Option<Animation>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Game
impl<'de> Deserialize<'de> for Game
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more