mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-26 10:56:34 +00:00
Regen for removal of summoner by-name endpoints
This commit is contained in:
parent
c289a59688
commit
c7ce017b54
3 changed files with 4 additions and 44 deletions
|
@ -8,7 +8,7 @@
|
|||
///////////////////////////////////////////////
|
||||
|
||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version d88b76516d4cc65491fb04b455d05dec3545ebfd
|
||||
// Version 3d364f8efe1fc3090102af41f8d7fec1554abf45
|
||||
|
||||
//! Automatically generated endpoint handles.
|
||||
#![allow(clippy::let_and_return, clippy::too_many_arguments)]
|
||||
|
@ -1336,25 +1336,6 @@ impl<'a> SummonerV4<'a> {
|
|||
future
|
||||
}
|
||||
|
||||
/// Get a summoner by summoner name.
|
||||
/// # Parameters
|
||||
/// * `route` - Route to query.
|
||||
/// * `summoner_name` (required, in path) - Summoner Name
|
||||
/// # Riot Developer API Reference
|
||||
/// <a href="https://developer.riotgames.com/api-methods/#summoner-v4/GET_getBySummonerName" target="_blank">`summoner-v4.getBySummonerName`</a>
|
||||
///
|
||||
/// Note: this method is automatically generated.
|
||||
pub fn get_by_summoner_name(&self, route: PlatformRoute, summoner_name: &str)
|
||||
-> impl Future<Output = Result<Option<summoner_v4::Summoner>>> + 'a
|
||||
{
|
||||
let route_str = route.into();
|
||||
let request = self.base.request(Method::GET, route_str, &format!("/lol/summoner/v4/summoners/by-name/{}", summoner_name));
|
||||
let future = self.base.execute_opt::<summoner_v4::Summoner>("summoner-v4.getBySummonerName", route_str, request);
|
||||
#[cfg(feature = "tracing")]
|
||||
let future = future.instrument(tracing::info_span!("summoner-v4.getBySummonerName"));
|
||||
future
|
||||
}
|
||||
|
||||
/// Get a summoner by PUUID.
|
||||
/// # Parameters
|
||||
/// * `route` - Route to query.
|
||||
|
@ -1685,25 +1666,6 @@ impl<'a> TftSummonerV1<'a> {
|
|||
future
|
||||
}
|
||||
|
||||
/// Get a summoner by summoner name.
|
||||
/// # Parameters
|
||||
/// * `route` - Route to query.
|
||||
/// * `summoner_name` (required, in path) - Summoner Name
|
||||
/// # Riot Developer API Reference
|
||||
/// <a href="https://developer.riotgames.com/api-methods/#tft-summoner-v1/GET_getBySummonerName" target="_blank">`tft-summoner-v1.getBySummonerName`</a>
|
||||
///
|
||||
/// Note: this method is automatically generated.
|
||||
pub fn get_by_summoner_name(&self, route: PlatformRoute, summoner_name: &str)
|
||||
-> impl Future<Output = Result<Option<tft_summoner_v1::Summoner>>> + 'a
|
||||
{
|
||||
let route_str = route.into();
|
||||
let request = self.base.request(Method::GET, route_str, &format!("/tft/summoner/v1/summoners/by-name/{}", summoner_name));
|
||||
let future = self.base.execute_opt::<tft_summoner_v1::Summoner>("tft-summoner-v1.getBySummonerName", route_str, request);
|
||||
#[cfg(feature = "tracing")]
|
||||
let future = future.instrument(tracing::info_span!("tft-summoner-v1.getBySummonerName"));
|
||||
future
|
||||
}
|
||||
|
||||
/// Get a summoner by PUUID.
|
||||
/// # Parameters
|
||||
/// * `route` - Route to query.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
///////////////////////////////////////////////
|
||||
|
||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version d88b76516d4cc65491fb04b455d05dec3545ebfd
|
||||
// Version 3d364f8efe1fc3090102af41f8d7fec1554abf45
|
||||
|
||||
//! Metadata about the Riot API and Riven.
|
||||
//!
|
||||
|
@ -16,7 +16,7 @@
|
|||
|
||||
/// Metadata for endpoints. Each tuple corresponds to one endpoint and contains
|
||||
/// the HTTP [`Method`](reqwest::Method), `str` path, and the method's `str` ID.
|
||||
pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 81] = [
|
||||
pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 79] = [
|
||||
(reqwest::Method::GET, "/riot/account/v1/accounts/by-puuid/{puuid}", "account-v1.getByPuuid"),
|
||||
(reqwest::Method::GET, "/riot/account/v1/accounts/by-riot-id/{gameName}/{tagLine}", "account-v1.getByRiotId"),
|
||||
(reqwest::Method::GET, "/riot/account/v1/accounts/me", "account-v1.getByAccessToken"),
|
||||
|
@ -61,7 +61,6 @@ pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 81] = [
|
|||
(reqwest::Method::GET, "/lol/spectator/v5/featured-games", "spectator-v5.getFeaturedGames"),
|
||||
(reqwest::Method::GET, "/fulfillment/v1/summoners/by-puuid/{rsoPUUID}", "summoner-v4.getByRSOPUUID"),
|
||||
(reqwest::Method::GET, "/lol/summoner/v4/summoners/by-account/{encryptedAccountId}", "summoner-v4.getByAccountId"),
|
||||
(reqwest::Method::GET, "/lol/summoner/v4/summoners/by-name/{summonerName}", "summoner-v4.getBySummonerName"),
|
||||
(reqwest::Method::GET, "/lol/summoner/v4/summoners/by-puuid/{encryptedPUUID}", "summoner-v4.getByPUUID"),
|
||||
(reqwest::Method::GET, "/lol/summoner/v4/summoners/me", "summoner-v4.getByAccessToken"),
|
||||
(reqwest::Method::GET, "/lol/summoner/v4/summoners/{encryptedSummonerId}", "summoner-v4.getBySummonerId"),
|
||||
|
@ -76,7 +75,6 @@ pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 81] = [
|
|||
(reqwest::Method::GET, "/tft/match/v1/matches/{matchId}", "tft-match-v1.getMatch"),
|
||||
(reqwest::Method::GET, "/tft/status/v1/platform-data", "tft-status-v1.getPlatformData"),
|
||||
(reqwest::Method::GET, "/tft/summoner/v1/summoners/by-account/{encryptedAccountId}", "tft-summoner-v1.getByAccountId"),
|
||||
(reqwest::Method::GET, "/tft/summoner/v1/summoners/by-name/{summonerName}", "tft-summoner-v1.getBySummonerName"),
|
||||
(reqwest::Method::GET, "/tft/summoner/v1/summoners/by-puuid/{encryptedPUUID}", "tft-summoner-v1.getByPUUID"),
|
||||
(reqwest::Method::GET, "/tft/summoner/v1/summoners/me", "tft-summoner-v1.getByAccessToken"),
|
||||
(reqwest::Method::GET, "/tft/summoner/v1/summoners/{encryptedSummonerId}", "tft-summoner-v1.getBySummonerId"),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
///////////////////////////////////////////////
|
||||
|
||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version d88b76516d4cc65491fb04b455d05dec3545ebfd
|
||||
// Version 3d364f8efe1fc3090102af41f8d7fec1554abf45
|
||||
|
||||
#![allow(missing_docs)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue