pub struct GamesClient { /* private fields */ }
Implementations§
Source§impl GamesClient
impl GamesClient
Sourcepub async fn get(
&self,
request_builder: RequestBuilder,
) -> Result<Vec<Game>, Box<dyn Error + Send + Sync + 'static>>
pub async fn get( &self, request_builder: RequestBuilder, ) -> Result<Vec<Game>, Box<dyn Error + Send + Sync + 'static>>
Receives a configured RequestBuilder an returns a result containing a collection
Source§impl GamesClient
impl GamesClient
Sourcepub async fn get_by_name<S: Into<String>>(
&self,
name: S,
limit: usize,
) -> Result<Vec<Game>, Box<dyn Error + Send + Sync + 'static>>
pub async fn get_by_name<S: Into<String>>( &self, name: S, limit: usize, ) -> Result<Vec<Game>, Box<dyn Error + Send + Sync + 'static>>
Returns a games collection containing the given name
Sourcepub async fn get_first_by_name<S: Into<String>>(&self, name: S) -> Option<Game>
pub async fn get_first_by_name<S: Into<String>>(&self, name: S) -> Option<Game>
Returns the first game found inside a collection for a given name
Auto Trait Implementations§
impl Freeze for GamesClient
impl RefUnwindSafe for GamesClient
impl Send for GamesClient
impl Sync for GamesClient
impl Unpin for GamesClient
impl UnwindSafe for GamesClient
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