///////////////////////////////////////////////
// //
// ! //
// This file is automatically generated! //
// Do not directly edit! //
// //
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version e610739a49d23996a0987245e4bb5796bcd18533
//! Automatically generated endpoint handles.
#![allow(clippy::let_and_return, clippy::too_many_arguments)]
use crate::models::*;
use std::future::Future;
use std::vec::Vec;
#[cfg(feature="tracing")]
use tracing::Instrument;
use reqwest::Method;
use crate::Result;
use crate::consts::{ RegionalRoute, PlatformRoute, ValPlatformRoute };
use crate::riot_api::RiotApi;
impl RiotApi {
/// Returns a handle for accessing [AccountV1](crate::endpoints::AccountV1) endpoints.
/// # Riot Developer API Reference
/// `account-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn account_v1(&self) -> AccountV1 {
AccountV1 { base: self }
}
/// Returns a handle for accessing [ChampionMasteryV4](crate::endpoints::ChampionMasteryV4) endpoints.
/// # Riot Developer API Reference
/// `champion-mastery-v4`
///
/// Note: this method is automatically generated.
#[inline]
pub fn champion_mastery_v4(&self) -> ChampionMasteryV4 {
ChampionMasteryV4 { base: self }
}
/// Returns a handle for accessing [ChampionV3](crate::endpoints::ChampionV3) endpoints.
/// # Riot Developer API Reference
/// `champion-v3`
///
/// Note: this method is automatically generated.
#[inline]
pub fn champion_v3(&self) -> ChampionV3 {
ChampionV3 { base: self }
}
/// Returns a handle for accessing [ClashV1](crate::endpoints::ClashV1) endpoints.
/// # Riot Developer API Reference
/// `clash-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn clash_v1(&self) -> ClashV1 {
ClashV1 { base: self }
}
/// Returns a handle for accessing [LeagueExpV4](crate::endpoints::LeagueExpV4) endpoints.
/// # Riot Developer API Reference
/// `league-exp-v4`
///
/// Note: this method is automatically generated.
#[inline]
pub fn league_exp_v4(&self) -> LeagueExpV4 {
LeagueExpV4 { base: self }
}
/// Returns a handle for accessing [LeagueV4](crate::endpoints::LeagueV4) endpoints.
/// # Riot Developer API Reference
/// `league-v4`
///
/// Note: this method is automatically generated.
#[inline]
pub fn league_v4(&self) -> LeagueV4 {
LeagueV4 { base: self }
}
/// Returns a handle for accessing [LolChallengesV1](crate::endpoints::LolChallengesV1) endpoints.
/// # Riot Developer API Reference
/// `lol-challenges-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lol_challenges_v1(&self) -> LolChallengesV1 {
LolChallengesV1 { base: self }
}
/// Returns a handle for accessing [LolStatusV3](crate::endpoints::LolStatusV3) endpoints.
/// # Riot Developer API Reference
/// `lol-status-v3`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lol_status_v3(&self) -> LolStatusV3 {
LolStatusV3 { base: self }
}
/// Returns a handle for accessing [LolStatusV4](crate::endpoints::LolStatusV4) endpoints.
/// # Riot Developer API Reference
/// `lol-status-v4`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lol_status_v4(&self) -> LolStatusV4 {
LolStatusV4 { base: self }
}
/// Returns a handle for accessing [LorDeckV1](crate::endpoints::LorDeckV1) endpoints.
/// # Riot Developer API Reference
/// `lor-deck-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_deck_v1(&self) -> LorDeckV1 {
LorDeckV1 { base: self }
}
/// Returns a handle for accessing [LorInventoryV1](crate::endpoints::LorInventoryV1) endpoints.
/// # Riot Developer API Reference
/// `lor-inventory-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_inventory_v1(&self) -> LorInventoryV1 {
LorInventoryV1 { base: self }
}
/// Returns a handle for accessing [LorMatchV1](crate::endpoints::LorMatchV1) endpoints.
/// # Riot Developer API Reference
/// `lor-match-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_match_v1(&self) -> LorMatchV1 {
LorMatchV1 { base: self }
}
/// Returns a handle for accessing [LorRankedV1](crate::endpoints::LorRankedV1) endpoints.
/// # Riot Developer API Reference
/// `lor-ranked-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_ranked_v1(&self) -> LorRankedV1 {
LorRankedV1 { base: self }
}
/// Returns a handle for accessing [LorStatusV1](crate::endpoints::LorStatusV1) endpoints.
/// # Riot Developer API Reference
/// `lor-status-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_status_v1(&self) -> LorStatusV1 {
LorStatusV1 { base: self }
}
/// Returns a handle for accessing [MatchV5](crate::endpoints::MatchV5) endpoints.
/// # Riot Developer API Reference
/// `match-v5`
///
/// Note: this method is automatically generated.
#[inline]
pub fn match_v5(&self) -> MatchV5 {
MatchV5 { base: self }
}
/// Returns a handle for accessing [SpectatorV4](crate::endpoints::SpectatorV4) endpoints.
/// # Riot Developer API Reference
/// `spectator-v4`
///
/// Note: this method is automatically generated.
#[inline]
pub fn spectator_v4(&self) -> SpectatorV4 {
SpectatorV4 { base: self }
}
/// Returns a handle for accessing [SummonerV4](crate::endpoints::SummonerV4) endpoints.
/// # Riot Developer API Reference
/// `summoner-v4`
///
/// Note: this method is automatically generated.
#[inline]
pub fn summoner_v4(&self) -> SummonerV4 {
SummonerV4 { base: self }
}
/// Returns a handle for accessing [TftLeagueV1](crate::endpoints::TftLeagueV1) endpoints.
/// # Riot Developer API Reference
/// `tft-league-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn tft_league_v1(&self) -> TftLeagueV1 {
TftLeagueV1 { base: self }
}
/// Returns a handle for accessing [TftMatchV1](crate::endpoints::TftMatchV1) endpoints.
/// # Riot Developer API Reference
/// `tft-match-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn tft_match_v1(&self) -> TftMatchV1 {
TftMatchV1 { base: self }
}
/// Returns a handle for accessing [TftStatusV1](crate::endpoints::TftStatusV1) endpoints.
/// # Riot Developer API Reference
/// `tft-status-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn tft_status_v1(&self) -> TftStatusV1 {
TftStatusV1 { base: self }
}
/// Returns a handle for accessing [TftSummonerV1](crate::endpoints::TftSummonerV1) endpoints.
/// # Riot Developer API Reference
/// `tft-summoner-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn tft_summoner_v1(&self) -> TftSummonerV1 {
TftSummonerV1 { base: self }
}
/// Returns a handle for accessing [TournamentStubV5](crate::endpoints::TournamentStubV5) endpoints.
/// # Riot Developer API Reference
/// `tournament-stub-v5`
///
/// Note: this method is automatically generated.
#[inline]
pub fn tournament_stub_v5(&self) -> TournamentStubV5 {
TournamentStubV5 { base: self }
}
/// Returns a handle for accessing [TournamentV5](crate::endpoints::TournamentV5) endpoints.
/// # Riot Developer API Reference
/// `tournament-v5`
///
/// Note: this method is automatically generated.
#[inline]
pub fn tournament_v5(&self) -> TournamentV5 {
TournamentV5 { base: self }
}
/// Returns a handle for accessing [ValContentV1](crate::endpoints::ValContentV1) endpoints.
/// # Riot Developer API Reference
/// `val-content-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn val_content_v1(&self) -> ValContentV1 {
ValContentV1 { base: self }
}
/// Returns a handle for accessing [ValMatchV1](crate::endpoints::ValMatchV1) endpoints.
/// # Riot Developer API Reference
/// `val-match-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn val_match_v1(&self) -> ValMatchV1 {
ValMatchV1 { base: self }
}
/// Returns a handle for accessing [ValRankedV1](crate::endpoints::ValRankedV1) endpoints.
/// # Riot Developer API Reference
/// `val-ranked-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn val_ranked_v1(&self) -> ValRankedV1 {
ValRankedV1 { base: self }
}
/// Returns a handle for accessing [ValStatusV1](crate::endpoints::ValStatusV1) endpoints.
/// # Riot Developer API Reference
/// `val-status-v1`
///
/// Note: this method is automatically generated.
#[inline]
pub fn val_status_v1(&self) -> ValStatusV1 {
ValStatusV1 { base: self }
}
}
/// AccountV1 endpoints handle, accessed by calling [`account_v1()`](crate::RiotApi::account_v1) on a [`RiotApi`](crate::RiotApi) instance.
/// # Riot Developer API Reference
/// `account-v1`
///
/// Note: this struct is automatically generated.
#[repr(transparent)]
pub struct AccountV1<'a> {
base: &'a RiotApi,
}
impl<'a> AccountV1<'a> {
/// Get account by puuid
/// # Parameters
/// * `route` - Route to query.
/// * `puuid` (required, in path)
/// # Riot Developer API Reference
/// `account-v1.getByPuuid`
///
/// Note: this method is automatically generated.
pub fn get_by_puuid(&self, route: RegionalRoute, puuid: &str)
-> impl Future