diff --git a/src/consts/champion.rs b/src/consts/champion.rs index 22fcd2f..58e462d 100644 --- a/src/consts/champion.rs +++ b/src/consts/champion.rs @@ -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", diff --git a/src/endpoints.rs b/src/endpoints.rs index 96dd072..e2b94dc 100644 --- a/src/endpoints.rs +++ b/src/endpoints.rs @@ -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 /// `account-v1.getByRiotId` /// @@ -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::>("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` diff --git a/src/meta.rs b/src/meta.rs index 418f52c..90c5639 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 0c5382b0f4b74c9e27cee3043c02faa4acef0f25 +// Version 7bea623175b27bdc53a046c4e0d09b0f0d638aa7 //! Metadata about the Riot API and Riven. //! diff --git a/src/models.rs b/src/models.rs index 5e3c81c..39ec026 100644 --- a/src/models.rs +++ b/src/models.rs @@ -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, - /// 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, } @@ -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, } @@ -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, + /// This field may be omitted if the player has been anonymized. #[serde(rename = "gameName")] - pub game_name: String, + pub game_name: Option, + /// This field may be omitted if the player has been anonymized. #[serde(rename = "tagLine")] - pub tag_line: String, + pub tag_line: Option, #[serde(rename = "leaderboardRank")] pub leaderboard_rank: i64, #[serde(rename = "rankedRating")]