[][src]Struct riven::RiotApi

pub struct RiotApi { /* fields omitted */ }

For retrieving data from the Riot Games API.

Rate Limiting

The Riot Game API enforces dynamic rate limiting, meaning that rate limits are specified in response headers and (hypothetically) could change at any time. Riven keeps track of changing rate limits seamlessly, preventing you from getting blacklisted.

Riven's rate limiting is highly efficient, meaning that it can reach the limits of your rate limit without going over.

Methods

impl RiotApi[src]

pub fn champion_mastery_v4(&self) -> ChampionMasteryV4[src]

Handle for ChampionMasteryV4 endpoints. This method is automatically generated.

Official API Reference

pub fn champion_v3(&self) -> ChampionV3[src]

Handle for ChampionV3 endpoints. This method is automatically generated.

Official API Reference

pub fn league_exp_v4(&self) -> LeagueExpV4[src]

Handle for LeagueExpV4 endpoints. This method is automatically generated.

Official API Reference

pub fn league_v4(&self) -> LeagueV4[src]

Handle for LeagueV4 endpoints. This method is automatically generated.

Official API Reference

pub fn lol_status_v3(&self) -> LolStatusV3[src]

Handle for LolStatusV3 endpoints. This method is automatically generated.

Official API Reference

pub fn match_v4(&self) -> MatchV4[src]

Handle for MatchV4 endpoints. This method is automatically generated.

Official API Reference

pub fn spectator_v4(&self) -> SpectatorV4[src]

Handle for SpectatorV4 endpoints. This method is automatically generated.

Official API Reference

pub fn summoner_v4(&self) -> SummonerV4[src]

Handle for SummonerV4 endpoints. This method is automatically generated.

Official API Reference

pub fn tft_league_v1(&self) -> TftLeagueV1[src]

Handle for TftLeagueV1 endpoints. This method is automatically generated.

Official API Reference

pub fn tft_match_v1(&self) -> TftMatchV1[src]

Handle for TftMatchV1 endpoints. This method is automatically generated.

Official API Reference

pub fn tft_summoner_v1(&self) -> TftSummonerV1[src]

Handle for TftSummonerV1 endpoints. This method is automatically generated.

Official API Reference

pub fn third_party_code_v4(&self) -> ThirdPartyCodeV4[src]

Handle for ThirdPartyCodeV4 endpoints. This method is automatically generated.

Official API Reference

pub fn tournament_stub_v4(&self) -> TournamentStubV4[src]

Handle for TournamentStubV4 endpoints. This method is automatically generated.

Official API Reference

pub fn tournament_v4(&self) -> TournamentV4[src]

Handle for TournamentV4 endpoints. This method is automatically generated.

Official API Reference

impl RiotApi[src]

pub fn with_config(config: RiotApiConfig) -> Self[src]

pub fn with_key<T: Into<String>>(api_key: T) -> Self[src]

pub fn get_optional<'a, T: DeserializeOwned + 'a>(
    &'a self,
    method_id: &'static str,
    region_platform: &'static str,
    path: String,
    query: Option<String>
) -> impl Future<Output = Result<Option<T>>> + 'a
[src]

pub fn get<'a, T: DeserializeOwned + 'a>(
    &'a self,
    method_id: &'static str,
    region_platform: &'static str,
    path: String,
    query: Option<String>
) -> impl Future<Output = Result<T>> + 'a
[src]

Auto Trait Implementations

impl Send for RiotApi

impl Sync for RiotApi

impl Unpin for RiotApi

impl !UnwindSafe for RiotApi

impl !RefUnwindSafe for RiotApi

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]