forked from mirror/Riven
1
0
Fork 0

Regen for Gwen, various

v/1.x.x
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, #[strum(to_string="Gragas")] Gragas = 79,
/// Graves (`Graves`, 104). /// Graves (`Graves`, 104).
#[strum(to_string="Graves")] Graves = 104, #[strum(to_string="Graves")] Graves = 104,
/// Gwen (`Gwen`, 887).
#[strum(to_string="Gwen")] Gwen = 887,
/// Hecarim (`Hecarim`, 120). /// Hecarim (`Hecarim`, 120).
#[strum(to_string="Hecarim")] Hecarim = 120, #[strum(to_string="Hecarim")] Hecarim = 120,
/// Heimerdinger (`Heimerdinger`, 74). /// Heimerdinger (`Heimerdinger`, 74).
@ -401,6 +403,7 @@ impl Champion {
Self::Gnar => "Gnar", Self::Gnar => "Gnar",
Self::Gragas => "Gragas", Self::Gragas => "Gragas",
Self::Graves => "Graves", Self::Graves => "Graves",
Self::Gwen => "Gwen",
Self::Hecarim => "Hecarim", Self::Hecarim => "Hecarim",
Self::Heimerdinger => "Heimerdinger", Self::Heimerdinger => "Heimerdinger",
Self::Illaoi => "Illaoi", Self::Illaoi => "Illaoi",

View File

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c5382b0f4b74c9e27cee3043c02faa4acef0f25 // Version 7bea623175b27bdc53a046c4e0d09b0f0d638aa7
//! Automatically generated endpoint handles. //! Automatically generated endpoint handles.
@ -268,8 +268,8 @@ impl<'a> AccountV1<'a> {
/// Get account by riot id /// Get account by riot id
/// # Parameters /// # Parameters
/// * `region` - Region to query. /// * `region` - Region to query.
/// * `tagLine` /// * `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` /// * `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 /// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/api-methods/#account-v1/GET_getByRiotId" target="_blank">`account-v1.getByRiotId`</a> /// <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, base: &'a RiotApi,
} }
impl<'a> TftMatchV1<'a> { impl<'a> TftMatchV1<'a> {
/// Get a list of match ids by PUUID. /// Get a list of match ids by PUUID
/// # Parameters /// # Parameters
/// * `region` - Region to query. /// * `region` - Region to query.
/// * `puuid` /// * `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)) 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 /// # Parameters
/// * `region` - Region to query. /// * `region` - Region to query.
/// * `matchId` /// * `matchId`

View File

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

View File

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