pub struct Client { /* private fields */ }
Implementations
sourceimpl Client
impl Client
pub async fn new(credentials: Credentials) -> Result<Self, APIError>
pub async fn load(&mut self, credentials: Credentials) -> Result<(), APIError>
pub async fn print_keys(&self)
pub async fn get_clan_warlog(
&self,
tag: String
) -> Result<APIResponse<WarLog>, APIError>
pub async fn get_clans(
&self,
options: ClanSearchOptions
) -> Result<APIResponse<Clan>, APIError>
pub async fn get_current_war(&self, clan_tag: String) -> Result<War, APIError>
pub async fn get_clan(&self, clan_tag: String) -> Result<Clan, APIError>
pub async fn get_clan_members(
&self,
clan_tag: String
) -> Result<APIResponse<ClanMember>, APIError>
pub async fn get_player(&self, tag: String) -> Result<Player, APIError>
pub async fn verify_player_token(
&self,
tag: String,
token: String
) -> Result<PlayerToken, APIError>
pub async fn get_leagues(&self) -> Result<APIResponse<League>, APIError>
pub async fn get_league_season_rankings(
&self,
league_id: LeagueKind,
season_id: Season,
paging: Paging
) -> Result<APIResponse<PlayerRanking>, APIError>
pub async fn get_league(&self, league_id: LeagueKind) -> Result<League, APIError>
pub async fn get_league_seasons(
&self,
league_id: LeagueKind
) -> Result<APIResponse<Season>, APIError>
pub async fn get_war_league(
&self,
war_league: WarLeagueKind
) -> Result<WarLeague, APIError>
pub async fn get_war_leagues(&self) -> Result<APIResponse<WarLeague>, APIError>
pub async fn get_clan_rankings(
&self,
location: Local
) -> Result<APIResponse<ClanRanking>, APIError>
pub async fn get_player_rankings(
&self,
location: Local
) -> Result<APIResponse<PlayerRanking>, APIError>
pub async fn get_versus_clan_rankings(
&self,
location: Local
) -> Result<APIResponse<ClanRanking>, APIError>
pub async fn get_versus_player_rankings(
&self,
location: Local
) -> Result<APIResponse<PlayerVersusRanking>, APIError>
pub async fn get_locations(&self) -> Result<APIResponse<Location>, APIError>
pub async fn get_location(&self, location: Local) -> Result<Location, APIError>
pub async fn get_goldpass(&self) -> Result<GoldPass, APIError>
pub async fn get_player_labels(
&self
) -> Result<APIResponse<PlayerLabel>, APIError>
pub async fn get_clan_labels(&self) -> Result<APIResponse<ClanLabel>, APIError>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more