[][src]Struct riven::endpoints::ClashV1

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

ClashV1 endpoints handle, accessed by calling clash_v1() on a RiotApi instance.

Riot Developer API Reference

clash-v1

Note: this struct is automatically generated.

Implementations

impl<'a> ClashV1<'a>[src]

pub fn get_players_by_summoner(
    &self,
    region: Region,
    summoner_id: &str
) -> impl Future<Output = Result<Vec<Player>>> + 'a
[src]

Get players by summoner ID.

Implementation Notes

This endpoint returns a list of active Clash players for a given summoner ID. If a summoner registers for multiple tournaments at the same time (e.g., Saturday and Sunday) then both registrations would appear in this list.

Parameters

  • region - Region to query.
  • summonerId

Riot Developer API Reference

clash-v1.getPlayersBySummoner

Note: this method is automatically generated.

pub fn get_team_by_id(
    &self,
    region: Region,
    team_id: &str
) -> impl Future<Output = Result<Option<Team>>> + 'a
[src]

Get team by ID.

Parameters

  • region - Region to query.
  • teamId

Riot Developer API Reference

clash-v1.getTeamById

Note: this method is automatically generated.

pub fn get_tournaments(
    &self,
    region: Region
) -> impl Future<Output = Result<Vec<Tournament>>> + 'a
[src]

Get all active or upcoming tournaments.

Parameters

  • region - Region to query.

Riot Developer API Reference

clash-v1.getTournaments

Note: this method is automatically generated.

pub fn get_tournament_by_team(
    &self,
    region: Region,
    team_id: &str
) -> impl Future<Output = Result<Option<Tournament>>> + 'a
[src]

Get tournament by team ID.

Parameters

  • region - Region to query.
  • teamId

Riot Developer API Reference

clash-v1.getTournamentByTeam

Note: this method is automatically generated.

pub fn get_tournament_by_id(
    &self,
    region: Region,
    tournament_id: i32
) -> impl Future<Output = Result<Option<Tournament>>> + 'a
[src]

Get tournament by ID.

Parameters

  • region - Region to query.
  • tournamentId

Riot Developer API Reference

clash-v1.getTournamentById

Note: this method is automatically generated.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ClashV1<'a>

impl<'a> Send for ClashV1<'a>

impl<'a> Sync for ClashV1<'a>

impl<'a> Unpin for ClashV1<'a>

impl<'a> !UnwindSafe for ClashV1<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.