pub struct LeagueV4<'a> { /* private fields */ }
Expand description
LeagueV4 endpoints handle, accessed by calling league_v4()
on a RiotApi
instance.
§Riot Developer API Reference
Note: this struct is automatically generated.
Implementations§
source§impl<'a> LeagueV4<'a>
impl<'a> LeagueV4<'a>
sourcepub fn get_challenger_league(
&self,
route: PlatformRoute,
queue: QueueType,
) -> impl Future<Output = Result<LeagueList>> + 'a
pub fn get_challenger_league( &self, route: PlatformRoute, queue: QueueType, ) -> impl Future<Output = Result<LeagueList>> + 'a
sourcepub fn get_league_entries_for_summoner(
&self,
route: PlatformRoute,
encrypted_summoner_id: &str,
) -> impl Future<Output = Result<Vec<LeagueEntry>>> + 'a
pub fn get_league_entries_for_summoner( &self, route: PlatformRoute, encrypted_summoner_id: &str, ) -> impl Future<Output = Result<Vec<LeagueEntry>>> + 'a
Get league entries in all queues for a given summoner ID.
§Parameters
route
- Route to query.encrypted_summoner_id
(required, in path)
§Riot Developer API Reference
league-v4.getLeagueEntriesForSummoner
Note: this method is automatically generated.
sourcepub fn get_league_entries(
&self,
route: PlatformRoute,
queue: QueueType,
tier: Tier,
division: Division,
page: Option<i32>,
) -> impl Future<Output = Result<Vec<LeagueEntry>>> + 'a
pub fn get_league_entries( &self, route: PlatformRoute, queue: QueueType, tier: Tier, division: Division, page: Option<i32>, ) -> impl Future<Output = Result<Vec<LeagueEntry>>> + 'a
Get all the league entries.
§Parameters
route
- Route to query.division
(required, in path)tier
(required, in path)queue
(required, in path) - Note that the queue value must be a valid ranked queue.page
(optional, in query) - Defaults to 1. Starts with page 1.
§Riot Developer API Reference
Note: this method is automatically generated.
sourcepub fn get_grandmaster_league(
&self,
route: PlatformRoute,
queue: QueueType,
) -> impl Future<Output = Result<LeagueList>> + 'a
pub fn get_grandmaster_league( &self, route: PlatformRoute, queue: QueueType, ) -> impl Future<Output = Result<LeagueList>> + 'a
Get the grandmaster league of a specific queue.
§Parameters
route
- Route to query.queue
(required, in path)
§Riot Developer API Reference
league-v4.getGrandmasterLeague
Note: this method is automatically generated.
sourcepub fn get_league_by_id(
&self,
route: PlatformRoute,
league_id: &str,
) -> impl Future<Output = Result<Option<LeagueList>>> + 'a
pub fn get_league_by_id( &self, route: PlatformRoute, league_id: &str, ) -> impl Future<Output = Result<Option<LeagueList>>> + 'a
sourcepub fn get_master_league(
&self,
route: PlatformRoute,
queue: QueueType,
) -> impl Future<Output = Result<LeagueList>> + 'a
pub fn get_master_league( &self, route: PlatformRoute, queue: QueueType, ) -> impl Future<Output = Result<LeagueList>> + 'a
Auto Trait Implementations§
impl<'a> Freeze for LeagueV4<'a>
impl<'a> !RefUnwindSafe for LeagueV4<'a>
impl<'a> Send for LeagueV4<'a>
impl<'a> Sync for LeagueV4<'a>
impl<'a> Unpin for LeagueV4<'a>
impl<'a> !UnwindSafe for LeagueV4<'a>
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