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
Auto Trait Implementations§
impl Freeze for Game
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnwindSafe for Game
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more