pub struct GameApi<'api> { /* private fields */ }Expand description
Game endpoint for the API.
Retrieve one or more games or game expansions by their IDs, up to a max of 20 at once. Optionally more information can be included, such as comments or marketplace data.
Implementations§
Source§impl<'api> GameApi<'api>
impl<'api> GameApi<'api>
Sourcepub async fn get_by_id(
&self,
id: u64,
query_params: GameQueryParams,
) -> Result<GameDetails>
pub async fn get_by_id( &self, id: u64, query_params: GameQueryParams, ) -> Result<GameDetails>
Searches for a board game or expansion by a given ID.
Sourcepub async fn get_by_ids(
&self,
ids: Vec<u64>,
query_params: GameQueryParams,
) -> Result<Vec<GameDetails>>
pub async fn get_by_ids( &self, ids: Vec<u64>, query_params: GameQueryParams, ) -> Result<Vec<GameDetails>>
Searches for board games or expansions by given IDs. Can return both games and expansions together.
Auto Trait Implementations§
impl<'api> Freeze for GameApi<'api>
impl<'api> !RefUnwindSafe for GameApi<'api>
impl<'api> Send for GameApi<'api>
impl<'api> Sync for GameApi<'api>
impl<'api> Unpin for GameApi<'api>
impl<'api> !UnwindSafe for GameApi<'api>
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