[−][src]Struct riven::RiotApi
For retrieving data from the Riot Games API.
Rate Limiting
The Riot Game API does 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.
pub fn champion_v3(&self) -> ChampionV3
[src]
Handle for ChampionV3 endpoints. This method is automatically generated.
pub fn league_exp_v4(&self) -> LeagueExpV4
[src]
Handle for LeagueExpV4 endpoints. This method is automatically generated.
pub fn league_v4(&self) -> LeagueV4
[src]
Handle for LeagueV4 endpoints. This method is automatically generated.
pub fn lol_status_v3(&self) -> LolStatusV3
[src]
Handle for LolStatusV3 endpoints. This method is automatically generated.
pub fn match_v4(&self) -> MatchV4
[src]
Handle for MatchV4 endpoints. This method is automatically generated.
pub fn spectator_v4(&self) -> SpectatorV4
[src]
Handle for SpectatorV4 endpoints. This method is automatically generated.
pub fn summoner_v4(&self) -> SummonerV4
[src]
Handle for SummonerV4 endpoints. This method is automatically generated.
pub fn tft_league_v1(&self) -> TftLeagueV1
[src]
Handle for TftLeagueV1 endpoints. This method is automatically generated.
pub fn tft_match_v1(&self) -> TftMatchV1
[src]
Handle for TftMatchV1 endpoints. This method is automatically generated.
pub fn tft_summoner_v1(&self) -> TftSummonerV1
[src]
Handle for TftSummonerV1 endpoints. This method is automatically generated.
pub fn third_party_code_v4(&self) -> ThirdPartyCodeV4
[src]
Handle for ThirdPartyCodeV4 endpoints. This method is automatically generated.
pub fn tournament_stub_v4(&self) -> TournamentStubV4
[src]
Handle for TournamentStubV4 endpoints. This method is automatically generated.
pub fn tournament_v4(&self) -> TournamentV4
[src]
Handle for TournamentV4 endpoints. This method is automatically generated.
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<'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]
&'a self,
method_id: &'static str,
region_platform: &'static str,
path: String,
query: Option<String>
) -> impl Future<Output = Result<Option<T>>> + 'a
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,