[][src]Struct riven::ChampionMasteryV4

pub struct ChampionMasteryV4<'a> { /* fields omitted */ }

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]

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]

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 for
  • encryptedSummonerId - 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]

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]

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]