pub struct GameRef { /* private fields */ }
Expand description
Reference interface of a game.
Implementations§
source§impl GameRef
impl GameRef
sourcepub async fn get(self) -> Result<Game>
pub async fn get(self) -> Result<Game>
Get a reference to the Modio game object that this GameRef
refers to.
sourcepub fn mods(&self) -> Mods
pub fn mods(&self) -> Mods
Return a reference to an interface that provides access to the mods of a game.
sourcepub async fn statistics(self) -> Result<Statistics>
pub async fn statistics(self) -> Result<Statistics>
Return the statistics for a game.
Return a reference to an interface that provides access to the tags of a game.
sourcepub async fn edit_media(self, media: EditMediaOptions) -> Result<()>
pub async fn edit_media(self, media: EditMediaOptions) -> Result<()>
Add new media to a game. [required: token]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GameRef
impl !RefUnwindSafe for GameRef
impl Send for GameRef
impl Sync for GameRef
impl Unpin for GameRef
impl !UnwindSafe for GameRef
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