Regen for Gwen, various

This commit is contained in:
Mingwei Samuel 2021-04-02 00:07:38 -07:00
parent b8f886d6e9
commit c460516cfe
4 changed files with 23 additions and 13 deletions

View file

@ -102,6 +102,8 @@ pub enum Champion {
#[strum(to_string="Gragas")] Gragas = 79,
/// Graves (`Graves`, 104).
#[strum(to_string="Graves")] Graves = 104,
/// Gwen (`Gwen`, 887).
#[strum(to_string="Gwen")] Gwen = 887,
/// Hecarim (`Hecarim`, 120).
#[strum(to_string="Hecarim")] Hecarim = 120,
/// Heimerdinger (`Heimerdinger`, 74).
@ -401,6 +403,7 @@ impl Champion {
Self::Gnar => "Gnar",
Self::Gragas => "Gragas",
Self::Graves => "Graves",
Self::Gwen => "Gwen",
Self::Hecarim => "Hecarim",
Self::Heimerdinger => "Heimerdinger",
Self::Illaoi => "Illaoi",

View file

@ -7,7 +7,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c5382b0f4b74c9e27cee3043c02faa4acef0f25
// Version 7bea623175b27bdc53a046c4e0d09b0f0d638aa7
//! Automatically generated endpoint handles.
@ -268,8 +268,8 @@ impl<'a> AccountV1<'a> {
/// Get account by riot id
/// # Parameters
/// * `region` - Region to query.
/// * `tagLine`
/// * `gameName`
/// * `tagLine` - When querying for a player by their riot id, the gameName and tagLine query params are required. However not all accounts have a gameName and tagLine associated so these fields may not be included in the response.
/// * `gameName` - When querying for a player by their riot id, the gameName and tagLine query params are required. However not all accounts have a gameName and tagLine associated so these fields may not be included in the response.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/api-methods/#account-v1/GET_getByRiotId" target="_blank">`account-v1.getByRiotId`</a>
///
@ -1084,7 +1084,7 @@ pub struct TftMatchV1<'a> {
base: &'a RiotApi,
}
impl<'a> TftMatchV1<'a> {
/// Get a list of match ids by PUUID.
/// Get a list of match ids by PUUID
/// # Parameters
/// * `region` - Region to query.
/// * `puuid`
@ -1103,7 +1103,7 @@ impl<'a> TftMatchV1<'a> {
self.base.get::<Vec<String>>("tft-match-v1.getMatchIdsByPUUID", region.into(), path_string, Some(query_string))
}
/// Get a match by match id.
/// Get a match by match id
/// # Parameters
/// * `region` - Region to query.
/// * `matchId`

View file

@ -7,7 +7,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c5382b0f4b74c9e27cee3043c02faa4acef0f25
// Version 7bea623175b27bdc53a046c4e0d09b0f0d638aa7
//! Metadata about the Riot API and Riven.
//!

View file

@ -7,7 +7,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c5382b0f4b74c9e27cee3043c02faa4acef0f25
// Version 7bea623175b27bdc53a046c4e0d09b0f0d638aa7
//! Data transfer structs.
//!
@ -27,10 +27,10 @@ pub mod account_v1 {
pub struct Account {
#[serde(rename = "puuid")]
pub puuid: String,
/// This field may be excluded if the account doesn't have a gameName
/// This field may be excluded from the response if the account doesn't have a gameName.
#[serde(rename = "gameName")]
pub game_name: Option<String>,
/// This field may be excluded if the account doesn't have a tagLine
/// This field may be excluded from the response if the account doesn't have a tagLine.
#[serde(rename = "tagLine")]
pub tag_line: Option<String>,
}
@ -524,7 +524,7 @@ pub mod lor_match_v1 {
/// Match id.
#[serde(rename = "match_id")]
pub match_id: String,
/// A list of encrypted participant PUUIDs.
/// A list of participant PUUIDs.
#[serde(rename = "participants")]
pub participants: std::vec::Vec<String>,
}
@ -2222,6 +2222,10 @@ pub mod val_match_v1 {
pub struct Player {
#[serde(rename = "puuid")]
pub puuid: String,
#[serde(rename = "gameName")]
pub game_name: String,
#[serde(rename = "tagLine")]
pub tag_line: String,
#[serde(rename = "teamId")]
pub team_id: String,
#[serde(rename = "partyId")]
@ -2496,12 +2500,15 @@ pub mod val_ranked_v1 {
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct Player {
/// This field may be omitted if the player has been anonymized.
#[serde(rename = "puuid")]
pub puuid: String,
pub puuid: Option<String>,
/// This field may be omitted if the player has been anonymized.
#[serde(rename = "gameName")]
pub game_name: String,
pub game_name: Option<String>,
/// This field may be omitted if the player has been anonymized.
#[serde(rename = "tagLine")]
pub tag_line: String,
pub tag_line: Option<String>,
#[serde(rename = "leaderboardRank")]
pub leaderboard_rank: i64,
#[serde(rename = "rankedRating")]