pub struct Client {
pub client: Client,
}
Expand description
R6tracker Client
Fields§
§client: Client
The inner http client
Implementations§
source§impl Client
impl Client
sourcepub async fn get_profile(
&self,
name: &str,
platform: Platform
) -> Result<ApiResponse<UserData>, Error>
pub async fn get_profile( &self, name: &str, platform: Platform ) -> Result<ApiResponse<UserData>, Error>
Get an r6tracker profile
sourcepub async fn get_sessions(
&self,
name: &str,
platform: Platform
) -> Result<ApiResponse<SessionsData>, Error>
pub async fn get_sessions( &self, name: &str, platform: Platform ) -> Result<ApiResponse<SessionsData>, Error>
Get the sessions for a user
sourcepub async fn get_overwolf_player(
&self,
name: &str
) -> Result<OverwolfResponse<OverwolfPlayer>, Error>
pub async fn get_overwolf_player( &self, name: &str ) -> Result<OverwolfResponse<OverwolfPlayer>, Error>
Get player info using the Overwolf API.
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