[−][src]Struct riven::LeagueV4
LeagueV4 endpoints. This struct is automatically generated.
Official API Reference
Methods
impl<'a> LeagueV4<'a>
[src]
pub fn get_challenger_league(
&self,
region: Region,
queue: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
[src]
&self,
region: Region,
queue: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
Get the challenger league for given queue.
Official API Reference
https://developer.riotgames.com/api-methods/#league-v4/GET_getChallengerLeague
Parameters
region
- Region to query.queue
pub fn get_league_entries_for_summoner(
&self,
region: Region,
encrypted_summoner_id: &str
) -> impl Future<Output = Result<Option<Vec<LeagueEntry>>, Error>> + 'a
[src]
&self,
region: Region,
encrypted_summoner_id: &str
) -> impl Future<Output = Result<Option<Vec<LeagueEntry>>, Error>> + 'a
Get league entries in all queues for a given summoner ID.
Official API Reference
https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntriesForSummoner
Parameters
region
- Region to query.encryptedSummonerId
pub fn get_league_entries(
&self,
region: Region,
queue: &str,
tier: &str,
division: &str,
page: Option<i32>
) -> impl Future<Output = Result<Option<Vec<LeagueEntry>>, Error>> + 'a
[src]
&self,
region: Region,
queue: &str,
tier: &str,
division: &str,
page: Option<i32>
) -> impl Future<Output = Result<Option<Vec<LeagueEntry>>, Error>> + 'a
Get all the league entries.
Official API Reference
https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueEntries
Parameters
region
- Region to query.division
tier
queue
- Note that the queue value must be a valid ranked queue.page
(optional) - Starts with page 1.
pub fn get_grandmaster_league(
&self,
region: Region,
queue: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
[src]
&self,
region: Region,
queue: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
Get the grandmaster league of a specific queue.
Official API Reference
https://developer.riotgames.com/api-methods/#league-v4/GET_getGrandmasterLeague
Parameters
region
- Region to query.queue
pub fn get_league_by_id(
&self,
region: Region,
league_id: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
[src]
&self,
region: Region,
league_id: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
Get league with given ID, including inactive entries.
Official API Reference
https://developer.riotgames.com/api-methods/#league-v4/GET_getLeagueById
Parameters
region
- Region to query.leagueId
- The UUID of the league.
pub fn get_master_league(
&self,
region: Region,
queue: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
[src]
&self,
region: Region,
queue: &str
) -> impl Future<Output = Result<Option<LeagueList>, Error>> + 'a
Get the master league for given queue.
Official API Reference
https://developer.riotgames.com/api-methods/#league-v4/GET_getMasterLeague
Parameters
region
- Region to query.queue
Auto Trait Implementations
impl<'a> Send for LeagueV4<'a>
impl<'a> Sync for LeagueV4<'a>
impl<'a> Unpin for LeagueV4<'a>
impl<'a> !UnwindSafe for LeagueV4<'a>
impl<'a> !RefUnwindSafe for LeagueV4<'a>
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,