pub struct SearchApi<'api> { /* private fields */ }Expand description
Search endpoint of the API. Used for searching for games by name.
Implementations§
source§impl<'api> SearchApi<'api>
impl<'api> SearchApi<'api>
sourcepub async fn search(&self, query: &str) -> Result<SearchResults>
pub async fn search(&self, query: &str) -> Result<SearchResults>
Searches with a given query.
sourcepub async fn search_exact(&self, query: &str) -> Result<SearchResults>
pub async fn search_exact(&self, query: &str) -> Result<SearchResults>
Searches for exact matches to a given query.
sourcepub async fn search_with_query_params(
&self,
query: &str,
query_params: SearchQueryParams,
) -> Result<SearchResults>
pub async fn search_with_query_params( &self, query: &str, query_params: SearchQueryParams, ) -> Result<SearchResults>
Makes a request from a SearchQueryParams.
Auto Trait Implementations§
impl<'api> Freeze for SearchApi<'api>
impl<'api> !RefUnwindSafe for SearchApi<'api>
impl<'api> Send for SearchApi<'api>
impl<'api> Sync for SearchApi<'api>
impl<'api> Unpin for SearchApi<'api>
impl<'api> !UnwindSafe for SearchApi<'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