[−][src]Struct riven::ChampionMasteryV4
ChampionMasteryV4 endpoints. This struct is automatically generated.
Official API Reference
https://developer.riotgames.com/api-methods/#champion-mastery-v4
Methods
impl<'a> ChampionMasteryV4<'a>
[src]
pub fn get_all_champion_masteries(
&self,
region: Region,
encrypted_summoner_id: &str
) -> impl Future<Output = Result<Option<Vec<ChampionMastery>>, Error>> + 'a
[src]
&self,
region: Region,
encrypted_summoner_id: &str
) -> impl Future<Output = Result<Option<Vec<ChampionMastery>>, Error>> + 'a
Get all champion mastery entries sorted by number of champion points descending,
Official API Reference
https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getAllChampionMasteries
Parameters
region
- Region to query.encryptedSummonerId
- Summoner ID associated with the player
pub fn get_champion_mastery(
&self,
region: Region,
encrypted_summoner_id: &str,
champion_id: i64
) -> impl Future<Output = Result<Option<ChampionMastery>, Error>> + 'a
[src]
&self,
region: Region,
encrypted_summoner_id: &str,
champion_id: i64
) -> impl Future<Output = Result<Option<ChampionMastery>, Error>> + 'a
Get a champion mastery by player ID and champion ID.
Official API Reference
https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMastery
Parameters
region
- Region to query.championId
- Champion ID to retrieve Champion Mastery forencryptedSummonerId
- Summoner ID associated with the player
pub fn get_champion_mastery_score(
&self,
region: Region,
encrypted_summoner_id: &str
) -> impl Future<Output = Result<Option<i32>, Error>> + 'a
[src]
&self,
region: Region,
encrypted_summoner_id: &str
) -> impl Future<Output = Result<Option<i32>, Error>> + 'a
Get a player's total champion mastery score, which is the sum of individual champion mastery levels.
Official API Reference
https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getChampionMasteryScore
Parameters
region
- Region to query.encryptedSummonerId
- Summoner ID associated with the player
Auto Trait Implementations
impl<'a> Send for ChampionMasteryV4<'a>
impl<'a> Sync for ChampionMasteryV4<'a>
impl<'a> Unpin for ChampionMasteryV4<'a>
impl<'a> !UnwindSafe for ChampionMasteryV4<'a>
impl<'a> !RefUnwindSafe for ChampionMasteryV4<'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,