Struct rust_tdlib::types::Game
source · [−]pub struct Game { /* private fields */ }
Expand description
Describes a game
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Game
impl<'de> Deserialize<'de> for Game
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnwindSafe for Game
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more