Struct igdb_api_rust::client::Client
source · pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
pub fn new(client_id: &str, client_secret: &str) -> Self
pub fn with_endpoint(self, endpoint: &str) -> Self
pub async fn request<M: Message + Default>( &mut self, query: &'static ApicalypseBuilder ) -> Result<M, IGDBApiError>
pub async fn request_raw<M: Message + Default>( &mut self, query: &str ) -> Result<M, IGDBApiError>
pub async fn request_count<M: Message + Default>( &mut self, query: &'static ApicalypseBuilder ) -> Result<Count, IGDBApiError>
pub async fn request_count_raw<M: Message + Default>( &mut self, query: &str ) -> Result<Count, IGDBApiError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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