2019-10-31 08:09:20 +00:00
///////////////////////////////////////////////
// //
// ! //
// This file is automatically generated! //
// Do not directly edit! //
// //
2019-10-26 05:19:00 +00:00
///////////////////////////////////////////////
2019-10-19 21:39:53 +00:00
// http://www.mingweisamuel.com/riotapi-schema/tool/
2020-09-02 00:27:28 +00:00
// Version e9fad555098e217edc088cc4b1ecc6fe095ba6cb
2019-10-19 21:39:53 +00:00
2020-02-01 21:35:37 +00:00
//! Data transfer structs.
//!
//! Separated into separate modules for each endpoint.
//! Several modules contain structs with the same name, so be sure to use the right ones.
//!
//! Note: these modules are automatically generated.
2019-11-03 18:48:45 +00:00
2020-07-26 23:33:03 +00:00
/// Data structs used by [`AccountV1`](crate::endpoints::AccountV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod account_v1 {
/// Account data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Account {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
2020-09-02 00:27:28 +00:00
/// This field may be excluded if the account doesn't have a gameName
2020-07-26 23:33:03 +00:00
#[ serde(rename = " gameName " ) ]
2020-09-02 00:27:28 +00:00
pub game_name : Option < String > ,
/// This field may be excluded if the account doesn't have a tagLine
2020-07-26 23:33:03 +00:00
#[ serde(rename = " tagLine " ) ]
2020-09-02 00:27:28 +00:00
pub tag_line : Option < String > ,
2020-07-26 23:33:03 +00:00
}
/// ActiveShard data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ActiveShard {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " game " ) ]
pub game : String ,
#[ serde(rename = " activeShard " ) ]
pub active_shard : String ,
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`ChampionMasteryV4`](crate::endpoints::ChampionMasteryV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod champion_mastery_v4 {
2020-02-01 21:35:37 +00:00
/// ChampionMastery data object.
2019-10-19 21:39:53 +00:00
/// # Description
/// This object contains single Champion Mastery information for player and champion combination.
2020-02-01 21:35:37 +00:00
///
/// Note: This struct is automatically generated
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ChampionMastery {
2020-03-31 19:07:13 +00:00
/// Number of points needed to achieve next level. Zero if player reached maximum champion level for this champion.
#[ serde(rename = " championPointsUntilNextLevel " ) ]
pub champion_points_until_next_level : i64 ,
2019-10-19 21:39:53 +00:00
/// Is chest granted for this champion or not in current season.
#[ serde(rename = " chestGranted " ) ]
pub chest_granted : bool ,
/// Champion ID for this entry.
#[ serde(rename = " championId " ) ]
2019-10-26 05:19:00 +00:00
pub champion_id : crate ::consts ::Champion ,
2019-10-19 21:39:53 +00:00
/// Last time this champion was played by this player - in Unix milliseconds time format.
#[ serde(rename = " lastPlayTime " ) ]
pub last_play_time : i64 ,
2020-03-31 19:07:13 +00:00
/// Champion level for specified player and champion combination.
#[ serde(rename = " championLevel " ) ]
pub champion_level : i32 ,
2019-10-19 21:39:53 +00:00
/// Summoner ID for this entry. (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2020-03-31 19:07:13 +00:00
/// Total number of champion points for this player and champion combination - they are used to determine championLevel.
#[ serde(rename = " championPoints " ) ]
pub champion_points : i32 ,
/// Number of points earned since current level has been achieved.
#[ serde(rename = " championPointsSinceLastLevel " ) ]
pub champion_points_since_last_level : i64 ,
/// The token earned for this champion to levelup.
#[ serde(rename = " tokensEarned " ) ]
pub tokens_earned : i32 ,
2019-10-19 21:39:53 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`ChampionV3`](crate::endpoints::ChampionV3).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod champion_v3 {
2020-02-01 21:35:37 +00:00
/// ChampionInfo data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ChampionInfo {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " maxNewPlayerLevel " ) ]
pub max_new_player_level : i32 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " freeChampionIdsForNewPlayers " ) ]
2019-10-31 08:09:20 +00:00
pub free_champion_ids_for_new_players : std ::vec ::Vec < crate ::consts ::Champion > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " freeChampionIds " ) ]
2019-10-31 08:09:20 +00:00
pub free_champion_ids : std ::vec ::Vec < crate ::consts ::Champion > ,
2020-03-31 19:07:13 +00:00
}
}
/// Data structs used by [`ClashV1`](crate::endpoints::ClashV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod clash_v1 {
/// Player data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " teamId " ) ]
pub team_id : String ,
/// (Legal values: UNSELECTED, FILL, TOP, JUNGLE, MIDDLE, BOTTOM, UTILITY)
#[ serde(rename = " position " ) ]
pub position : String ,
/// (Legal values: CAPTAIN, MEMBER)
#[ serde(rename = " role " ) ]
pub role : String ,
}
/// Team data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Team {
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " tournamentId " ) ]
pub tournament_id : i32 ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " iconId " ) ]
pub icon_id : i32 ,
#[ serde(rename = " tier " ) ]
pub tier : i32 ,
/// Summoner ID of the team captain.
#[ serde(rename = " captain " ) ]
pub captain : String ,
#[ serde(rename = " abbreviation " ) ]
pub abbreviation : String ,
/// Team members.
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
}
/// Tournament data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Tournament {
#[ serde(rename = " id " ) ]
pub id : i32 ,
#[ serde(rename = " themeId " ) ]
pub theme_id : i32 ,
#[ serde(rename = " nameKey " ) ]
pub name_key : String ,
#[ serde(rename = " nameKeySecondary " ) ]
pub name_key_secondary : String ,
/// Tournament phase.
#[ serde(rename = " schedule " ) ]
pub schedule : std ::vec ::Vec < TournamentPhase > ,
}
/// TournamentPhase data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentPhase {
#[ serde(rename = " id " ) ]
pub id : i32 ,
#[ serde(rename = " registrationTime " ) ]
pub registration_time : i64 ,
#[ serde(rename = " startTime " ) ]
pub start_time : i64 ,
#[ serde(rename = " cancelled " ) ]
pub cancelled : bool ,
2019-10-19 21:39:53 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`LeagueExpV4`](crate::endpoints::LeagueExpV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod league_exp_v4 {
2020-02-01 21:35:37 +00:00
/// LeagueEntry data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueEntry {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
/// Player's summonerId (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " queueType " ) ]
pub queue_type : crate ::consts ::QueueType ,
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
2019-10-19 21:39:53 +00:00
/// Winning team on Summoners Rift. First placement in Teamfight Tactics.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
/// Losing team on Summoners Rift. Second through eighth placement in Teamfight Tactics.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " miniSeries " ) ]
pub mini_series : Option < MiniSeries > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// MiniSeries data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MiniSeries {
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " progress " ) ]
pub progress : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " target " ) ]
pub target : i32 ,
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`LeagueV4`](crate::endpoints::LeagueV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod league_v4 {
2020-02-01 21:35:37 +00:00
/// LeagueList data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueList {
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
#[ serde(rename = " entries " ) ]
pub entries : std ::vec ::Vec < LeagueItem > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " name " ) ]
pub name : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " queue " ) ]
pub queue : crate ::consts ::QueueType ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// LeagueItem data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueItem {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
/// Winning team on Summoners Rift.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " miniSeries " ) ]
2019-10-30 20:24:07 +00:00
pub mini_series : Option < MiniSeries > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
2020-01-26 22:15:16 +00:00
/// Losing team on Summoners Rift.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-01-26 22:15:16 +00:00
/// Player's encrypted summonerId.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
}
2020-02-01 21:35:37 +00:00
/// MiniSeries data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MiniSeries {
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " progress " ) ]
pub progress : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " target " ) ]
pub target : i32 ,
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
}
2020-02-01 21:35:37 +00:00
/// LeagueEntry data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueEntry {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " queueType " ) ]
pub queue_type : crate ::consts ::QueueType ,
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
2020-01-26 22:15:16 +00:00
/// Winning team on Summoners Rift.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
2020-01-26 22:15:16 +00:00
/// Losing team on Summoners Rift.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " miniSeries " ) ]
pub mini_series : Option < MiniSeries > ,
2019-10-19 21:39:53 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`LolStatusV3`](crate::endpoints::LolStatusV3).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod lol_status_v3 {
2020-02-01 21:35:37 +00:00
/// ShardStatus data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ShardStatus {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " locales " ) ]
pub locales : std ::vec ::Vec < String > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " hostname " ) ]
pub hostname : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " name " ) ]
pub name : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " services " ) ]
pub services : std ::vec ::Vec < Service > ,
#[ serde(rename = " slug " ) ]
pub slug : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " region_tag " ) ]
pub region_tag : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Service data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Service {
#[ serde(rename = " incidents " ) ]
pub incidents : std ::vec ::Vec < Incident > ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " slug " ) ]
pub slug : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " status " ) ]
pub status : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Incident data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Incident {
#[ serde(rename = " active " ) ]
pub active : bool ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " id " ) ]
pub id : i64 ,
#[ serde(rename = " updates " ) ]
pub updates : std ::vec ::Vec < Message > ,
}
2020-02-01 21:35:37 +00:00
/// Message data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Message {
#[ serde(rename = " severity " ) ]
pub severity : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " author " ) ]
pub author : String ,
#[ serde(rename = " translations " ) ]
pub translations : std ::vec ::Vec < Translation > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " id " ) ]
pub id : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " content " ) ]
pub content : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Translation data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Translation {
#[ serde(rename = " locale " ) ]
pub locale : String ,
#[ serde(rename = " content " ) ]
pub content : String ,
#[ serde(rename = " heading " ) ]
pub heading : String ,
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`LorRankedV1`](crate::endpoints::LorRankedV1).
///
/// Note: this module is automatically generated.
2020-01-26 22:15:16 +00:00
#[ allow(dead_code) ]
pub mod lor_ranked_v1 {
2020-02-01 21:35:37 +00:00
/// Leaderboard data object.
2020-01-26 22:15:16 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Leaderboard {
/// A list of players in Master tier.
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
}
2020-02-01 21:35:37 +00:00
/// Player data object.
2020-01-26 22:15:16 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " rank " ) ]
pub rank : i32 ,
2020-07-01 07:45:28 +00:00
/// League points.
#[ serde(rename = " lp " ) ]
pub lp : i32 ,
2020-01-26 22:15:16 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`MatchV4`](crate::endpoints::MatchV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod match_v4 {
2020-02-01 21:35:37 +00:00
/// Match data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
2020-07-01 07:45:28 +00:00
/// Participant identity information. Participant identity information is purposefully excluded for custom games.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " participantIdentities " ) ]
pub participant_identities : std ::vec ::Vec < ParticipantIdentity > ,
/// Please refer to the Game Constants documentation.
2020-03-31 19:07:13 +00:00
#[ serde(rename = " queueId " ) ]
pub queue_id : crate ::consts ::Queue ,
2019-10-19 21:39:53 +00:00
/// Please refer to the Game Constants documentation.
#[ serde(rename = " gameType " ) ]
2019-10-26 05:19:00 +00:00
pub game_type : crate ::consts ::GameType ,
2019-10-19 21:39:53 +00:00
/// Match duration in seconds.
#[ serde(rename = " gameDuration " ) ]
pub game_duration : i64 ,
2020-03-31 19:07:13 +00:00
/// Team information.
#[ serde(rename = " teams " ) ]
pub teams : std ::vec ::Vec < TeamStats > ,
/// Platform where the match was played.
#[ serde(rename = " platformId " ) ]
pub platform_id : String ,
/// Designates the timestamp when champion select ended and the loading screen appeared, NOT when the game timer was at 0:00.
#[ serde(rename = " gameCreation " ) ]
pub game_creation : i64 ,
/// Please refer to the Game Constants documentation.
#[ serde(rename = " seasonId " ) ]
pub season_id : crate ::consts ::Season ,
/// The major.minor version typically indicates the patch the match was played on.
#[ serde(rename = " gameVersion " ) ]
pub game_version : String ,
/// Please refer to the Game Constants documentation.
#[ serde(rename = " mapId " ) ]
pub map_id : crate ::consts ::Map ,
/// Please refer to the Game Constants documentation.
#[ serde(rename = " gameMode " ) ]
pub game_mode : crate ::consts ::GameMode ,
/// Participant information.
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < Participant > ,
}
2020-02-01 21:35:37 +00:00
/// ParticipantIdentity data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ParticipantIdentity {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " participantId " ) ]
pub participant_id : i32 ,
2020-05-02 19:55:37 +00:00
/// Player information not included in the response for custom matches. Custom matches are considered private unless a tournament code was used to create the match.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " player " ) ]
pub player : Player ,
}
2020-02-01 21:35:37 +00:00
/// Player data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " profileIcon " ) ]
pub profile_icon : i32 ,
2020-07-01 07:45:28 +00:00
/// Player's original accountId.
2020-03-31 19:07:13 +00:00
#[ serde(rename = " accountId " ) ]
pub account_id : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " matchHistoryUri " ) ]
pub match_history_uri : String ,
2020-07-01 07:45:28 +00:00
/// Player's current accountId when the match was played.
2019-10-19 21:39:53 +00:00
#[ serde(rename = " currentAccountId " ) ]
pub current_account_id : String ,
2020-07-01 07:45:28 +00:00
/// Player's current platformId when the match was played.
2020-03-31 19:07:13 +00:00
#[ serde(rename = " currentPlatformId " ) ]
pub current_platform_id : String ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
2019-10-19 21:39:53 +00:00
/// Player's summonerId (Encrypted)
#[ serde(rename = " summonerId " ) ]
2020-07-26 23:33:03 +00:00
pub summoner_id : Option < String > ,
2020-07-01 07:45:28 +00:00
/// Player's original platformId.
2020-03-31 19:07:13 +00:00
#[ serde(rename = " platformId " ) ]
pub platform_id : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// TeamStats data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TeamStats {
2020-03-31 19:07:13 +00:00
/// Number of towers the team destroyed.
#[ serde(rename = " towerKills " ) ]
pub tower_kills : i32 ,
2019-10-19 21:39:53 +00:00
/// Number of times the team killed Rift Herald.
#[ serde(rename = " riftHeraldKills " ) ]
pub rift_herald_kills : i32 ,
/// Flag indicating whether or not the team scored the first blood.
#[ serde(rename = " firstBlood " ) ]
pub first_blood : bool ,
/// Number of inhibitors the team destroyed.
#[ serde(rename = " inhibitorKills " ) ]
pub inhibitor_kills : i32 ,
2020-03-31 19:07:13 +00:00
/// If match queueId has a draft, contains banned champion data, otherwise empty.
#[ serde(rename = " bans " ) ]
pub bans : std ::vec ::Vec < TeamBans > ,
/// Flag indicating whether or not the team scored the first Baron kill.
#[ serde(rename = " firstBaron " ) ]
pub first_baron : bool ,
/// Flag indicating whether or not the team scored the first Dragon kill.
#[ serde(rename = " firstDragon " ) ]
pub first_dragon : bool ,
2019-10-19 21:39:53 +00:00
/// For Dominion matches, specifies the points the team had at game end.
#[ serde(rename = " dominionVictoryScore " ) ]
pub dominion_victory_score : i32 ,
2020-03-31 19:07:13 +00:00
/// Number of times the team killed Dragon.
#[ serde(rename = " dragonKills " ) ]
pub dragon_kills : i32 ,
/// Number of times the team killed Baron.
#[ serde(rename = " baronKills " ) ]
pub baron_kills : i32 ,
/// Flag indicating whether or not the team destroyed the first inhibitor.
#[ serde(rename = " firstInhibitor " ) ]
pub first_inhibitor : bool ,
/// Flag indicating whether or not the team destroyed the first tower.
#[ serde(rename = " firstTower " ) ]
pub first_tower : bool ,
/// Number of times the team killed Vilemaw.
#[ serde(rename = " vilemawKills " ) ]
pub vilemaw_kills : i32 ,
/// Flag indicating whether or not the team scored the first Rift Herald kill.
#[ serde(rename = " firstRiftHerald " ) ]
pub first_rift_herald : bool ,
/// 100 for blue side. 200 for red side.
#[ serde(rename = " teamId " ) ]
pub team_id : crate ::consts ::Team ,
2019-10-27 08:56:22 +00:00
/// String indicating whether or not the team won. There are only two values visibile in public match history.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: Fail, Win)
#[ serde(rename = " win " ) ]
2020-08-03 03:31:24 +00:00
pub win : Option < String > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// TeamBans data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TeamBans {
/// Banned championId.
#[ serde(rename = " championId " ) ]
2019-10-26 05:19:00 +00:00
pub champion_id : crate ::consts ::Champion ,
2020-03-31 19:07:13 +00:00
/// Turn during which the champion was banned.
#[ serde(rename = " pickTurn " ) ]
pub pick_turn : i32 ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Participant data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Participant {
#[ serde(rename = " participantId " ) ]
pub participant_id : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " championId " ) ]
pub champion_id : crate ::consts ::Champion ,
2019-10-19 21:39:53 +00:00
/// List of legacy Rune information. Not included for matches played with Runes Reforged.
#[ serde(rename = " runes " ) ]
2019-10-30 20:24:07 +00:00
pub runes : Option < std ::vec ::Vec < Rune > > ,
2020-03-31 19:07:13 +00:00
/// Participant statistics.
#[ serde(rename = " stats " ) ]
pub stats : ParticipantStats ,
2019-10-19 21:39:53 +00:00
/// 100 for blue side. 200 for red side.
#[ serde(rename = " teamId " ) ]
2019-10-26 05:19:00 +00:00
pub team_id : crate ::consts ::Team ,
2020-03-31 19:07:13 +00:00
/// Participant timeline data.
#[ serde(rename = " timeline " ) ]
pub timeline : ParticipantTimeline ,
/// First Summoner Spell id.
#[ serde(rename = " spell1Id " ) ]
pub spell1_id : i32 ,
2019-10-19 21:39:53 +00:00
/// Second Summoner Spell id.
#[ serde(rename = " spell2Id " ) ]
pub spell2_id : i32 ,
2019-10-27 08:56:22 +00:00
/// Highest ranked tier achieved for the previous season in a specific subset of queueIds, if any, otherwise null. Used to display border in game loading screen. Please refer to the Ranked Info documentation.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: CHALLENGER, MASTER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE, UNRANKED)
#[ serde(rename = " highestAchievedSeasonTier " ) ]
2019-10-30 20:24:07 +00:00
pub highest_achieved_season_tier : Option < crate ::consts ::Tier > ,
2020-03-31 19:07:13 +00:00
/// List of legacy Mastery information. Not included for matches played with Runes Reforged.
#[ serde(rename = " masteries " ) ]
pub masteries : Option < std ::vec ::Vec < Mastery > > ,
}
/// Rune data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Rune {
#[ serde(rename = " runeId " ) ]
pub rune_id : i32 ,
#[ serde(rename = " rank " ) ]
pub rank : i32 ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// ParticipantStats data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ParticipantStats {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " item0 " ) ]
pub item0 : i32 ,
#[ serde(rename = " item2 " ) ]
pub item2 : i32 ,
#[ serde(rename = " totalUnitsHealed " ) ]
pub total_units_healed : i32 ,
#[ serde(rename = " item1 " ) ]
pub item1 : i32 ,
#[ serde(rename = " largestMultiKill " ) ]
pub largest_multi_kill : i32 ,
#[ serde(rename = " goldEarned " ) ]
pub gold_earned : i32 ,
#[ serde(rename = " firstInhibitorKill " ) ]
pub first_inhibitor_kill : Option < bool > ,
#[ serde(rename = " physicalDamageTaken " ) ]
pub physical_damage_taken : i64 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " nodeNeutralizeAssist " ) ]
2019-10-30 20:24:07 +00:00
pub node_neutralize_assist : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " totalPlayerScore " ) ]
pub total_player_score : Option < i32 > ,
#[ serde(rename = " champLevel " ) ]
pub champ_level : i32 ,
#[ serde(rename = " damageDealtToObjectives " ) ]
pub damage_dealt_to_objectives : i64 ,
#[ serde(rename = " totalDamageTaken " ) ]
pub total_damage_taken : i64 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " neutralMinionsKilled " ) ]
pub neutral_minions_killed : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " deaths " ) ]
pub deaths : i32 ,
#[ serde(rename = " tripleKills " ) ]
pub triple_kills : i32 ,
#[ serde(rename = " magicDamageDealtToChampions " ) ]
pub magic_damage_dealt_to_champions : i64 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " wardsKilled " ) ]
pub wards_killed : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " pentaKills " ) ]
pub penta_kills : i32 ,
#[ serde(rename = " damageSelfMitigated " ) ]
pub damage_self_mitigated : i64 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " largestCriticalStrike " ) ]
pub largest_critical_strike : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " nodeNeutralize " ) ]
pub node_neutralize : Option < i32 > ,
#[ serde(rename = " totalTimeCrowdControlDealt " ) ]
pub total_time_crowd_control_dealt : i32 ,
#[ serde(rename = " firstTowerKill " ) ]
pub first_tower_kill : Option < bool > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " magicDamageDealt " ) ]
pub magic_damage_dealt : i64 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " totalScoreRank " ) ]
pub total_score_rank : Option < i32 > ,
#[ serde(rename = " nodeCapture " ) ]
pub node_capture : Option < i32 > ,
#[ serde(rename = " wardsPlaced " ) ]
pub wards_placed : Option < i32 > ,
#[ serde(rename = " totalDamageDealt " ) ]
pub total_damage_dealt : i64 ,
#[ serde(rename = " timeCCingOthers " ) ]
pub time_c_cing_others : i64 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " magicalDamageTaken " ) ]
pub magical_damage_taken : i64 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " largestKillingSpree " ) ]
pub largest_killing_spree : i32 ,
#[ serde(rename = " totalDamageDealtToChampions " ) ]
pub total_damage_dealt_to_champions : i64 ,
#[ serde(rename = " physicalDamageDealtToChampions " ) ]
pub physical_damage_dealt_to_champions : i64 ,
#[ serde(rename = " neutralMinionsKilledTeamJungle " ) ]
pub neutral_minions_killed_team_jungle : i32 ,
#[ serde(rename = " totalMinionsKilled " ) ]
pub total_minions_killed : i32 ,
#[ serde(rename = " firstInhibitorAssist " ) ]
pub first_inhibitor_assist : Option < bool > ,
#[ serde(rename = " visionWardsBoughtInGame " ) ]
pub vision_wards_bought_in_game : i32 ,
#[ serde(rename = " objectivePlayerScore " ) ]
pub objective_player_score : Option < i32 > ,
#[ serde(rename = " kills " ) ]
pub kills : i32 ,
#[ serde(rename = " firstTowerAssist " ) ]
pub first_tower_assist : Option < bool > ,
#[ serde(rename = " combatPlayerScore " ) ]
pub combat_player_score : Option < i32 > ,
#[ serde(rename = " inhibitorKills " ) ]
pub inhibitor_kills : Option < i32 > ,
#[ serde(rename = " turretKills " ) ]
pub turret_kills : Option < i32 > ,
#[ serde(rename = " participantId " ) ]
pub participant_id : i32 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " trueDamageTaken " ) ]
pub true_damage_taken : i64 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " firstBloodAssist " ) ]
pub first_blood_assist : Option < bool > ,
#[ serde(rename = " nodeCaptureAssist " ) ]
pub node_capture_assist : Option < i32 > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " assists " ) ]
pub assists : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " teamObjective " ) ]
pub team_objective : Option < i32 > ,
#[ serde(rename = " altarsNeutralized " ) ]
pub altars_neutralized : Option < i32 > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " goldSpent " ) ]
pub gold_spent : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " damageDealtToTurrets " ) ]
pub damage_dealt_to_turrets : i64 ,
#[ serde(rename = " altarsCaptured " ) ]
pub altars_captured : Option < i32 > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " win " ) ]
pub win : bool ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " totalHeal " ) ]
pub total_heal : i64 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " unrealKills " ) ]
pub unreal_kills : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " visionScore " ) ]
pub vision_score : Option < i64 > ,
#[ serde(rename = " physicalDamageDealt " ) ]
pub physical_damage_dealt : i64 ,
#[ serde(rename = " firstBloodKill " ) ]
pub first_blood_kill : Option < bool > ,
#[ serde(rename = " longestTimeSpentLiving " ) ]
pub longest_time_spent_living : i32 ,
#[ serde(rename = " killingSprees " ) ]
pub killing_sprees : i32 ,
#[ serde(rename = " sightWardsBoughtInGame " ) ]
pub sight_wards_bought_in_game : Option < i32 > ,
#[ serde(rename = " trueDamageDealtToChampions " ) ]
pub true_damage_dealt_to_champions : i64 ,
#[ serde(rename = " neutralMinionsKilledEnemyJungle " ) ]
pub neutral_minions_killed_enemy_jungle : i32 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " doubleKills " ) ]
pub double_kills : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " trueDamageDealt " ) ]
pub true_damage_dealt : i64 ,
#[ serde(rename = " quadraKills " ) ]
pub quadra_kills : i32 ,
#[ serde(rename = " item4 " ) ]
pub item4 : i32 ,
#[ serde(rename = " item3 " ) ]
pub item3 : i32 ,
#[ serde(rename = " item6 " ) ]
pub item6 : i32 ,
#[ serde(rename = " item5 " ) ]
pub item5 : i32 ,
#[ serde(rename = " playerScore0 " ) ]
pub player_score0 : Option < i32 > ,
#[ serde(rename = " playerScore1 " ) ]
pub player_score1 : Option < i32 > ,
#[ serde(rename = " playerScore2 " ) ]
pub player_score2 : Option < i32 > ,
#[ serde(rename = " playerScore3 " ) ]
pub player_score3 : Option < i32 > ,
#[ serde(rename = " playerScore4 " ) ]
pub player_score4 : Option < i32 > ,
#[ serde(rename = " playerScore5 " ) ]
pub player_score5 : Option < i32 > ,
#[ serde(rename = " playerScore6 " ) ]
pub player_score6 : Option < i32 > ,
#[ serde(rename = " playerScore7 " ) ]
pub player_score7 : Option < i32 > ,
#[ serde(rename = " playerScore8 " ) ]
pub player_score8 : Option < i32 > ,
#[ serde(rename = " playerScore9 " ) ]
pub player_score9 : Option < i32 > ,
/// Primary path keystone rune.
#[ serde(rename = " perk0 " ) ]
pub perk0 : Option < i32 > ,
2019-10-19 21:39:53 +00:00
/// Post game rune stats.
#[ serde(rename = " perk0Var1 " ) ]
2019-10-31 08:09:20 +00:00
pub perk0_var1 : Option < i32 > ,
2019-10-19 21:39:53 +00:00
/// Post game rune stats.
#[ serde(rename = " perk0Var2 " ) ]
2019-10-31 08:09:20 +00:00
pub perk0_var2 : Option < i32 > ,
2019-10-19 21:39:53 +00:00
/// Post game rune stats.
#[ serde(rename = " perk0Var3 " ) ]
2019-10-31 08:09:20 +00:00
pub perk0_var3 : Option < i32 > ,
2020-03-31 19:07:13 +00:00
/// Primary path rune.
#[ serde(rename = " perk1 " ) ]
pub perk1 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk1Var1 " ) ]
pub perk1_var1 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk1Var2 " ) ]
pub perk1_var2 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk1Var3 " ) ]
pub perk1_var3 : Option < i32 > ,
/// Primary path rune.
#[ serde(rename = " perk2 " ) ]
pub perk2 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk2Var1 " ) ]
pub perk2_var1 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk2Var2 " ) ]
pub perk2_var2 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk2Var3 " ) ]
pub perk2_var3 : Option < i32 > ,
/// Primary path rune.
#[ serde(rename = " perk3 " ) ]
pub perk3 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk3Var1 " ) ]
pub perk3_var1 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk3Var2 " ) ]
pub perk3_var2 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk3Var3 " ) ]
pub perk3_var3 : Option < i32 > ,
/// Secondary path rune.
#[ serde(rename = " perk4 " ) ]
pub perk4 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk4Var1 " ) ]
pub perk4_var1 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk4Var2 " ) ]
pub perk4_var2 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk4Var3 " ) ]
pub perk4_var3 : Option < i32 > ,
/// Secondary path rune.
#[ serde(rename = " perk5 " ) ]
pub perk5 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk5Var1 " ) ]
pub perk5_var1 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk5Var2 " ) ]
pub perk5_var2 : Option < i32 > ,
/// Post game rune stats.
#[ serde(rename = " perk5Var3 " ) ]
pub perk5_var3 : Option < i32 > ,
/// Primary rune path
#[ serde(rename = " perkPrimaryStyle " ) ]
pub perk_primary_style : Option < i32 > ,
/// Secondary rune path
#[ serde(rename = " perkSubStyle " ) ]
pub perk_sub_style : Option < i32 > ,
2020-09-02 00:27:28 +00:00
/// First stat rune.
#[ serde(rename = " statPerk0 " ) ]
pub stat_perk0 : Option < i32 > ,
/// Second stat rune.
#[ serde(rename = " statPerk1 " ) ]
pub stat_perk1 : Option < i32 > ,
/// Third stat rune.
#[ serde(rename = " statPerk2 " ) ]
pub stat_perk2 : Option < i32 > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// ParticipantTimeline data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ParticipantTimeline {
#[ serde(rename = " participantId " ) ]
2019-10-31 08:09:20 +00:00
pub participant_id : Option < i32 > ,
2019-10-19 21:39:53 +00:00
/// Creep score difference versus the calculated lane opponent(s) for a specified period.
#[ serde(rename = " csDiffPerMinDeltas " ) ]
2019-10-30 20:24:07 +00:00
pub cs_diff_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
2020-03-31 19:07:13 +00:00
/// Damage taken for a specified period.
#[ serde(rename = " damageTakenPerMinDeltas " ) ]
pub damage_taken_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
2019-10-27 08:56:22 +00:00
/// Participant's calculated role.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: DUO, NONE, SOLO, DUO_CARRY, DUO_SUPPORT)
#[ serde(rename = " role " ) ]
2019-10-31 08:09:20 +00:00
pub role : Option < String > ,
2019-10-19 21:39:53 +00:00
/// Damage taken difference versus the calculated lane opponent(s) for a specified period.
#[ serde(rename = " damageTakenDiffPerMinDeltas " ) ]
2019-10-30 20:24:07 +00:00
pub damage_taken_diff_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
2020-03-31 19:07:13 +00:00
/// Experience change for a specified period.
#[ serde(rename = " xpPerMinDeltas " ) ]
pub xp_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
/// Experience difference versus the calculated lane opponent(s) for a specified period.
#[ serde(rename = " xpDiffPerMinDeltas " ) ]
pub xp_diff_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
/// Participant's calculated lane. MID and BOT are legacy values.<br>
/// (Legal values: MID, MIDDLE, TOP, JUNGLE, BOT, BOTTOM)
#[ serde(rename = " lane " ) ]
pub lane : Option < String > ,
/// Creeps for a specified period.
#[ serde(rename = " creepsPerMinDeltas " ) ]
pub creeps_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
/// Gold for a specified period.
#[ serde(rename = " goldPerMinDeltas " ) ]
pub gold_per_min_deltas : Option < std ::collections ::HashMap < String , f64 > > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Mastery data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Mastery {
#[ serde(rename = " rank " ) ]
pub rank : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " masteryId " ) ]
pub mastery_id : i32 ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Matchlist data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Matchlist {
#[ serde(rename = " startIndex " ) ]
pub start_index : i32 ,
2020-07-01 07:45:28 +00:00
/// There is a known issue that this field doesn't correctly return the total number of games that match the parameters of the request. Please paginate using beginIndex until you reach the end of a player's matchlist.
2020-03-31 19:07:13 +00:00
#[ serde(rename = " totalGames " ) ]
pub total_games : i32 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " endIndex " ) ]
pub end_index : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " matches " ) ]
pub matches : std ::vec ::Vec < MatchReference > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// MatchReference data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchReference {
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " role " ) ]
pub role : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " season " ) ]
pub season : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " platformId " ) ]
pub platform_id : String ,
#[ serde(rename = " champion " ) ]
pub champion : crate ::consts ::Champion ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " queue " ) ]
2019-10-26 05:19:00 +00:00
pub queue : crate ::consts ::Queue ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " lane " ) ]
pub lane : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " timestamp " ) ]
pub timestamp : i64 ,
}
2020-02-01 21:35:37 +00:00
/// MatchTimeline data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimeline {
#[ serde(rename = " frames " ) ]
pub frames : std ::vec ::Vec < MatchFrame > ,
#[ serde(rename = " frameInterval " ) ]
pub frame_interval : i64 ,
}
2020-02-01 21:35:37 +00:00
/// MatchFrame data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchFrame {
#[ serde(rename = " participantFrames " ) ]
pub participant_frames : std ::collections ::HashMap < String , MatchParticipantFrame > ,
#[ serde(rename = " events " ) ]
pub events : std ::vec ::Vec < MatchEvent > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " timestamp " ) ]
pub timestamp : i64 ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// MatchParticipantFrame data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchParticipantFrame {
#[ serde(rename = " participantId " ) ]
pub participant_id : i32 ,
#[ serde(rename = " minionsKilled " ) ]
pub minions_killed : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " teamScore " ) ]
2020-05-30 20:33:49 +00:00
pub team_score : Option < i32 > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " dominionScore " ) ]
2020-05-30 20:33:49 +00:00
pub dominion_score : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " totalGold " ) ]
pub total_gold : i32 ,
#[ serde(rename = " level " ) ]
pub level : i32 ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " xp " ) ]
pub xp : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " currentGold " ) ]
pub current_gold : i32 ,
#[ serde(rename = " position " ) ]
2020-05-30 20:33:49 +00:00
pub position : Option < MatchPosition > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " jungleMinionsKilled " ) ]
pub jungle_minions_killed : i32 ,
}
2020-02-01 21:35:37 +00:00
/// MatchPosition data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchPosition {
#[ serde(rename = " x " ) ]
pub x : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " y " ) ]
pub y : i32 ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// MatchEvent data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchEvent {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " laneType " ) ]
2020-05-30 20:33:49 +00:00
pub lane_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " skillSlot " ) ]
2020-05-30 20:33:49 +00:00
pub skill_slot : Option < i32 > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " ascendedType " ) ]
2020-05-30 20:33:49 +00:00
pub ascended_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " creatorId " ) ]
2020-05-30 20:33:49 +00:00
pub creator_id : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " afterId " ) ]
2020-05-30 20:33:49 +00:00
pub after_id : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " eventType " ) ]
2020-05-30 20:33:49 +00:00
pub event_type : Option < String > ,
2020-03-31 19:07:13 +00:00
/// (Legal values: CHAMPION_KILL, WARD_PLACED, WARD_KILL, BUILDING_KILL, ELITE_MONSTER_KILL, ITEM_PURCHASED, ITEM_SOLD, ITEM_DESTROYED, ITEM_UNDO, SKILL_LEVEL_UP, ASCENDED_EVENT, CAPTURE_POINT, PORO_KING_SUMMON)
#[ serde(rename = " type " ) ]
pub r#type : String ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " levelUpType " ) ]
2020-05-30 20:33:49 +00:00
pub level_up_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " wardType " ) ]
2020-05-30 20:33:49 +00:00
pub ward_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " participantId " ) ]
2020-05-30 20:33:49 +00:00
pub participant_id : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " towerType " ) ]
2020-05-30 20:33:49 +00:00
pub tower_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " itemId " ) ]
2020-05-30 20:33:49 +00:00
pub item_id : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " beforeId " ) ]
2020-05-30 20:33:49 +00:00
pub before_id : Option < i32 > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " pointCaptured " ) ]
2020-05-30 20:33:49 +00:00
pub point_captured : Option < String > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " monsterType " ) ]
2020-05-30 20:33:49 +00:00
pub monster_type : Option < String > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " monsterSubType " ) ]
2020-05-30 20:33:49 +00:00
pub monster_sub_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " teamId " ) ]
2020-05-30 20:33:49 +00:00
pub team_id : Option < crate ::consts ::Team > ,
2019-10-19 21:39:53 +00:00
#[ serde(rename = " position " ) ]
2020-05-30 20:33:49 +00:00
pub position : Option < MatchPosition > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " killerId " ) ]
2020-05-30 20:33:49 +00:00
pub killer_id : Option < i32 > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " timestamp " ) ]
pub timestamp : i64 ,
#[ serde(rename = " assistingParticipantIds " ) ]
2020-05-30 20:33:49 +00:00
pub assisting_participant_ids : Option < std ::vec ::Vec < i32 > > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " buildingType " ) ]
2020-05-30 20:33:49 +00:00
pub building_type : Option < String > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " victimId " ) ]
2020-05-30 20:33:49 +00:00
pub victim_id : Option < i32 > ,
2019-10-19 21:39:53 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`SpectatorV4`](crate::endpoints::SpectatorV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod spectator_v4 {
2020-02-01 21:35:37 +00:00
/// CurrentGameInfo data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct CurrentGameInfo {
/// The ID of the game
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
2020-03-31 19:07:13 +00:00
/// The game type
#[ serde(rename = " gameType " ) ]
pub game_type : crate ::consts ::GameType ,
2019-10-19 21:39:53 +00:00
/// The game start time represented in epoch milliseconds
#[ serde(rename = " gameStartTime " ) ]
pub game_start_time : i64 ,
2020-03-31 19:07:13 +00:00
/// The ID of the map
#[ serde(rename = " mapId " ) ]
pub map_id : crate ::consts ::Map ,
/// The amount of time in seconds that has passed since the game started
#[ serde(rename = " gameLength " ) ]
pub game_length : i64 ,
2019-10-19 21:39:53 +00:00
/// The ID of the platform on which the game is being played
#[ serde(rename = " platformId " ) ]
pub platform_id : String ,
/// The game mode
#[ serde(rename = " gameMode " ) ]
2019-10-26 05:19:00 +00:00
pub game_mode : crate ::consts ::GameMode ,
2019-10-19 21:39:53 +00:00
/// Banned champion information
#[ serde(rename = " bannedChampions " ) ]
pub banned_champions : std ::vec ::Vec < BannedChampion > ,
2020-03-31 19:07:13 +00:00
/// The queue type (queue types are documented on the Game Constants page)
#[ serde(rename = " gameQueueConfigId " ) ]
pub game_queue_config_id : Option < crate ::consts ::Queue > ,
2019-10-19 21:39:53 +00:00
/// The observer information
#[ serde(rename = " observers " ) ]
pub observers : Observer ,
/// The participant information
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < CurrentGameParticipant > ,
}
2020-02-01 21:35:37 +00:00
/// BannedChampion data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct BannedChampion {
/// The turn during which the champion was banned
#[ serde(rename = " pickTurn " ) ]
pub pick_turn : i32 ,
/// The ID of the banned champion
#[ serde(rename = " championId " ) ]
2019-10-26 05:19:00 +00:00
pub champion_id : crate ::consts ::Champion ,
2019-10-19 21:39:53 +00:00
/// The ID of the team that banned the champion
#[ serde(rename = " teamId " ) ]
2019-10-26 05:19:00 +00:00
pub team_id : crate ::consts ::Team ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Observer data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Observer {
/// Key used to decrypt the spectator grid game data for playback
#[ serde(rename = " encryptionKey " ) ]
pub encryption_key : String ,
}
2020-02-01 21:35:37 +00:00
/// CurrentGameParticipant data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct CurrentGameParticipant {
/// The ID of the champion played by this participant
#[ serde(rename = " championId " ) ]
2019-10-26 05:19:00 +00:00
pub champion_id : crate ::consts ::Champion ,
2019-10-19 21:39:53 +00:00
/// Perks/Runes Reforged Information
#[ serde(rename = " perks " ) ]
pub perks : Perks ,
2020-03-31 19:07:13 +00:00
/// The ID of the profile icon used by this participant
#[ serde(rename = " profileIconId " ) ]
pub profile_icon_id : i64 ,
/// Flag indicating whether or not this participant is a bot
#[ serde(rename = " bot " ) ]
pub bot : bool ,
2019-10-19 21:39:53 +00:00
/// The team ID of this participant, indicating the participant's team
#[ serde(rename = " teamId " ) ]
2019-10-26 05:19:00 +00:00
pub team_id : crate ::consts ::Team ,
2020-03-31 19:07:13 +00:00
/// The summoner name of this participant
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
2019-10-19 21:39:53 +00:00
/// The encrypted summoner ID of this participant
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2020-03-31 19:07:13 +00:00
/// The ID of the first summoner spell used by this participant
#[ serde(rename = " spell1Id " ) ]
pub spell1_id : i64 ,
/// The ID of the second summoner spell used by this participant
#[ serde(rename = " spell2Id " ) ]
pub spell2_id : i64 ,
/// List of Game Customizations
#[ serde(rename = " gameCustomizationObjects " ) ]
pub game_customization_objects : std ::vec ::Vec < GameCustomizationObject > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Perks data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Perks {
/// IDs of the perks/runes assigned.
#[ serde(rename = " perkIds " ) ]
pub perk_ids : std ::vec ::Vec < i64 > ,
2020-03-31 19:07:13 +00:00
/// Primary runes path
#[ serde(rename = " perkStyle " ) ]
pub perk_style : i64 ,
2019-10-19 21:39:53 +00:00
/// Secondary runes path
#[ serde(rename = " perkSubStyle " ) ]
pub perk_sub_style : i64 ,
}
2020-03-31 19:07:13 +00:00
/// GameCustomizationObject data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct GameCustomizationObject {
/// Category identifier for Game Customization
#[ serde(rename = " category " ) ]
pub category : String ,
/// Game Customization content
#[ serde(rename = " content " ) ]
pub content : String ,
}
2020-02-01 21:35:37 +00:00
/// FeaturedGames data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct FeaturedGames {
/// The list of featured games
#[ serde(rename = " gameList " ) ]
pub game_list : std ::vec ::Vec < FeaturedGameInfo > ,
2020-03-31 19:07:13 +00:00
/// The suggested interval to wait before requesting FeaturedGames again
#[ serde(rename = " clientRefreshInterval " ) ]
pub client_refresh_interval : i64 ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// FeaturedGameInfo data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct FeaturedGameInfo {
2019-10-27 08:56:22 +00:00
/// The game mode<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD, KINGPORO)
#[ serde(rename = " gameMode " ) ]
2019-10-26 05:19:00 +00:00
pub game_mode : crate ::consts ::GameMode ,
2020-03-31 19:07:13 +00:00
/// The amount of time in seconds that has passed since the game started
#[ serde(rename = " gameLength " ) ]
pub game_length : i64 ,
2019-10-19 21:39:53 +00:00
/// The ID of the map
#[ serde(rename = " mapId " ) ]
2019-10-26 05:19:00 +00:00
pub map_id : crate ::consts ::Map ,
2019-10-27 08:56:22 +00:00
/// The game type<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME)
#[ serde(rename = " gameType " ) ]
2019-10-26 05:19:00 +00:00
pub game_type : crate ::consts ::GameType ,
2019-10-19 21:39:53 +00:00
/// Banned champion information
#[ serde(rename = " bannedChampions " ) ]
pub banned_champions : std ::vec ::Vec < BannedChampion > ,
2020-03-31 19:07:13 +00:00
/// The ID of the game
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
2019-10-19 21:39:53 +00:00
/// The observer information
#[ serde(rename = " observers " ) ]
pub observers : Observer ,
/// The queue type (queue types are documented on the Game Constants page)
#[ serde(rename = " gameQueueConfigId " ) ]
2019-10-26 05:19:00 +00:00
pub game_queue_config_id : crate ::consts ::Queue ,
2020-03-31 19:07:13 +00:00
/// The game start time represented in epoch milliseconds
#[ serde(rename = " gameStartTime " ) ]
pub game_start_time : i64 ,
/// The participant information
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < Participant > ,
/// The ID of the platform on which the game is being played
#[ serde(rename = " platformId " ) ]
pub platform_id : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// Participant data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Participant {
/// Flag indicating whether or not this participant is a bot
#[ serde(rename = " bot " ) ]
pub bot : bool ,
/// The ID of the second summoner spell used by this participant
#[ serde(rename = " spell2Id " ) ]
pub spell2_id : i64 ,
2020-03-31 19:07:13 +00:00
/// The ID of the profile icon used by this participant
#[ serde(rename = " profileIconId " ) ]
pub profile_icon_id : i64 ,
/// The summoner name of this participant
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
/// The ID of the champion played by this participant
#[ serde(rename = " championId " ) ]
pub champion_id : crate ::consts ::Champion ,
2019-10-19 21:39:53 +00:00
/// The team ID of this participant, indicating the participant's team
#[ serde(rename = " teamId " ) ]
2019-10-26 05:19:00 +00:00
pub team_id : crate ::consts ::Team ,
2019-10-19 21:39:53 +00:00
/// The ID of the first summoner spell used by this participant
#[ serde(rename = " spell1Id " ) ]
pub spell1_id : i64 ,
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`SummonerV4`](crate::endpoints::SummonerV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod summoner_v4 {
2020-02-01 21:35:37 +00:00
/// Summoner data object.
2019-10-19 21:39:53 +00:00
/// # Description
/// represents a summoner
2020-02-01 21:35:37 +00:00
///
/// Note: This struct is automatically generated
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Summoner {
2020-03-31 19:07:13 +00:00
/// Encrypted account ID. Max length 56 characters.
#[ serde(rename = " accountId " ) ]
pub account_id : String ,
2019-10-19 21:39:53 +00:00
/// ID of the summoner icon associated with the summoner.
#[ serde(rename = " profileIconId " ) ]
pub profile_icon_id : i32 ,
2020-07-01 07:45:28 +00:00
/// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: summoner name change, summoner level change, or profile icon change.
2020-03-31 19:07:13 +00:00
#[ serde(rename = " revisionDate " ) ]
pub revision_date : i64 ,
2019-10-19 21:39:53 +00:00
/// Summoner name.
#[ serde(rename = " name " ) ]
pub name : String ,
2020-03-31 19:07:13 +00:00
/// Encrypted summoner ID. Max length 63 characters.
#[ serde(rename = " id " ) ]
pub id : String ,
2019-10-19 21:39:53 +00:00
/// Encrypted PUUID. Exact length of 78 characters.
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
/// Summoner level associated with the summoner.
#[ serde(rename = " summonerLevel " ) ]
pub summoner_level : i64 ,
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`TftLeagueV1`](crate::endpoints::TftLeagueV1).
///
/// Note: this module is automatically generated.
2019-10-31 08:09:20 +00:00
#[ allow(dead_code) ]
pub mod tft_league_v1 {
2020-02-01 21:35:37 +00:00
/// LeagueList data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueList {
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
#[ serde(rename = " entries " ) ]
pub entries : std ::vec ::Vec < LeagueItem > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
2019-10-31 08:09:20 +00:00
#[ serde(rename = " name " ) ]
pub name : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " queue " ) ]
pub queue : crate ::consts ::QueueType ,
2019-10-31 08:09:20 +00:00
}
2020-02-01 21:35:37 +00:00
/// LeagueItem data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueItem {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
/// First placement.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
2019-10-31 08:09:20 +00:00
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " miniSeries " ) ]
pub mini_series : Option < MiniSeries > ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
2019-10-31 08:09:20 +00:00
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
2019-10-31 08:09:20 +00:00
/// Second through eighth placement.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
}
2020-02-01 21:35:37 +00:00
/// MiniSeries data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MiniSeries {
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " progress " ) ]
pub progress : String ,
2019-10-31 08:09:20 +00:00
#[ serde(rename = " target " ) ]
pub target : i32 ,
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
}
2020-02-01 21:35:37 +00:00
/// LeagueEntry data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueEntry {
2020-03-31 19:07:13 +00:00
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2019-10-31 08:09:20 +00:00
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " queueType " ) ]
pub queue_type : crate ::consts ::QueueType ,
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
2019-10-31 08:09:20 +00:00
/// First placement.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
/// Second through eighth placement.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
2019-10-31 08:09:20 +00:00
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
2020-03-31 19:07:13 +00:00
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " miniSeries " ) ]
pub mini_series : Option < MiniSeries > ,
2019-10-31 08:09:20 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`TftMatchV1`](crate::endpoints::TftMatchV1).
///
/// Note: this module is automatically generated.
2019-10-31 08:09:20 +00:00
#[ allow(dead_code) ]
pub mod tft_match_v1 {
2020-02-01 21:35:37 +00:00
/// Match data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
/// Match metadata.
#[ serde(rename = " metadata " ) ]
pub metadata : Metadata ,
2020-03-31 19:07:13 +00:00
/// Match info.
#[ serde(rename = " info " ) ]
pub info : Info ,
}
/// Metadata data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Metadata {
/// Match data version.
#[ serde(rename = " data_version " ) ]
pub data_version : String ,
/// Match id.
#[ serde(rename = " match_id " ) ]
pub match_id : String ,
/// A list of encrypted participant PUUIDs.
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < String > ,
2019-10-31 08:09:20 +00:00
}
2020-02-01 21:35:37 +00:00
/// Info data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Info {
/// Unix timestamp.
#[ serde(rename = " game_datetime " ) ]
pub game_datetime : i64 ,
/// Game length in seconds.
#[ serde(rename = " game_length " ) ]
pub game_length : f32 ,
2020-07-01 07:45:28 +00:00
/// Game variation key. Game variations documented in TFT static data.
2020-05-04 18:29:51 +00:00
#[ serde(rename = " game_variation " ) ]
pub game_variation : Option < String > ,
2019-10-31 08:09:20 +00:00
/// Game client version.
#[ serde(rename = " game_version " ) ]
pub game_version : String ,
2020-03-31 19:07:13 +00:00
/// Participants.
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < Participant > ,
/// Please refer to the League of Legends documentation.
#[ serde(rename = " queue_id " ) ]
pub queue_id : i32 ,
/// Teamfight Tactics set number.
#[ serde(rename = " tft_set_number " ) ]
pub tft_set_number : i32 ,
2019-10-31 08:09:20 +00:00
}
2020-02-01 21:35:37 +00:00
/// Participant data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Participant {
/// Participant's companion.
#[ serde(rename = " companion " ) ]
pub companion : Companion ,
2020-03-31 19:07:13 +00:00
/// Gold left after participant was eliminated.
#[ serde(rename = " gold_left " ) ]
pub gold_left : i32 ,
/// The round the participant was eliminated in. Note: If the player was eliminated in stage 2-1 their last_round would be 5.
#[ serde(rename = " last_round " ) ]
pub last_round : i32 ,
/// Participant Little Legend level. Note: This is not the number of active units.
#[ serde(rename = " level " ) ]
pub level : i32 ,
/// Participant placement upon elimination.
#[ serde(rename = " placement " ) ]
pub placement : i32 ,
2019-10-31 08:09:20 +00:00
/// Number of players the participant eliminated.
#[ serde(rename = " players_eliminated " ) ]
pub players_eliminated : i32 ,
/// Encrypted PUUID.
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
2020-03-31 19:07:13 +00:00
/// The number of seconds before the participant was eliminated.
#[ serde(rename = " time_eliminated " ) ]
pub time_eliminated : f32 ,
2019-10-31 08:09:20 +00:00
/// Damage the participant dealt to other players.
#[ serde(rename = " total_damage_to_players " ) ]
pub total_damage_to_players : i32 ,
2020-03-31 19:07:13 +00:00
/// A complete list of traits for the participant's active units.
#[ serde(rename = " traits " ) ]
pub traits : std ::vec ::Vec < Trait > ,
2019-10-31 08:09:20 +00:00
/// A list of active units for the participant.
#[ serde(rename = " units " ) ]
pub units : std ::vec ::Vec < Unit > ,
}
2020-02-01 21:35:37 +00:00
/// Trait data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Trait {
/// Trait name.
#[ serde(rename = " name " ) ]
pub name : String ,
/// Number of units with this trait.
#[ serde(rename = " num_units " ) ]
pub num_units : i32 ,
2020-09-02 00:27:28 +00:00
/// Current style for this trait. (0 = No style, 1 = Bronze, 2 = Silver, 3 = Gold, 4 = Chromatic)
#[ serde(rename = " style " ) ]
pub style : Option < i32 > ,
2020-03-31 19:07:13 +00:00
/// Current active tier for the trait.
#[ serde(rename = " tier_current " ) ]
pub tier_current : i32 ,
/// Total tiers for the trait.
#[ serde(rename = " tier_total " ) ]
2020-05-02 19:55:37 +00:00
pub tier_total : Option < i32 > ,
2019-10-31 08:09:20 +00:00
}
2020-02-01 21:35:37 +00:00
/// Unit data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Unit {
/// A list of the unit's items. Please refer to the Teamfight Tactics documentation for item ids.
#[ serde(rename = " items " ) ]
pub items : std ::vec ::Vec < i32 > ,
/// This field was introduced in patch 9.22 with data_version 2.
#[ serde(rename = " character_id " ) ]
pub character_id : String ,
/// Unit name.
#[ serde(rename = " name " ) ]
pub name : String ,
/// Unit rarity. This doesn't equate to the unit cost.
#[ serde(rename = " rarity " ) ]
pub rarity : i32 ,
2020-03-31 19:07:13 +00:00
/// Unit tier.
#[ serde(rename = " tier " ) ]
pub tier : i32 ,
2019-10-31 08:09:20 +00:00
}
2020-02-01 21:35:37 +00:00
/// Companion data object.
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Companion {
#[ serde(rename = " skin_ID " ) ]
pub skin_id : i32 ,
#[ serde(rename = " content_ID " ) ]
pub content_id : String ,
#[ serde(rename = " species " ) ]
pub species : String ,
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`TftSummonerV1`](crate::endpoints::TftSummonerV1).
///
/// Note: this module is automatically generated.
2019-10-31 08:09:20 +00:00
#[ allow(dead_code) ]
pub mod tft_summoner_v1 {
2020-02-01 21:35:37 +00:00
/// Summoner data object.
2019-10-31 08:09:20 +00:00
/// # Description
/// represents a summoner
2020-02-01 21:35:37 +00:00
///
/// Note: This struct is automatically generated
2019-10-31 08:09:20 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Summoner {
2020-07-01 07:45:28 +00:00
/// Encrypted account ID. Max length 56 characters.
#[ serde(rename = " accountId " ) ]
pub account_id : String ,
2019-10-31 08:09:20 +00:00
/// ID of the summoner icon associated with the summoner.
#[ serde(rename = " profileIconId " ) ]
2020-05-02 19:55:37 +00:00
pub profile_icon_id : i32 ,
2020-07-01 07:45:28 +00:00
/// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: summoner name change, summoner level change, or profile icon change.
#[ serde(rename = " revisionDate " ) ]
pub revision_date : i64 ,
2019-10-31 08:09:20 +00:00
/// Summoner name.
#[ serde(rename = " name " ) ]
2020-05-02 19:55:37 +00:00
pub name : String ,
2020-07-01 07:45:28 +00:00
/// Encrypted summoner ID. Max length 63 characters.
#[ serde(rename = " id " ) ]
pub id : String ,
2019-10-31 08:09:20 +00:00
/// Encrypted PUUID. Exact length of 78 characters.
#[ serde(rename = " puuid " ) ]
2020-05-02 19:55:37 +00:00
pub puuid : String ,
2019-10-31 08:09:20 +00:00
/// Summoner level associated with the summoner.
#[ serde(rename = " summonerLevel " ) ]
2020-05-02 19:55:37 +00:00
pub summoner_level : i64 ,
2019-10-31 08:09:20 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`TournamentStubV4`](crate::endpoints::TournamentStubV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod tournament_stub_v4 {
2020-02-01 21:35:37 +00:00
/// TournamentCodeParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCodeParameters {
2020-03-31 19:07:13 +00:00
/// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future.
#[ serde(rename = " allowedSummonerIds " ) ]
pub allowed_summoner_ids : Option < std ::vec ::Vec < String > > ,
/// Optional string that may contain any data in any format, if specified at all. Used to denote any custom information about the game.
#[ serde(rename = " metadata " ) ]
pub metadata : Option < String > ,
2019-10-19 21:39:53 +00:00
/// The team size of the game. Valid values are 1-5.
#[ serde(rename = " teamSize " ) ]
pub team_size : i32 ,
2019-10-27 08:56:22 +00:00
/// The pick type of the game.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
2019-10-27 08:56:22 +00:00
/// The map type of the game.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[ serde(rename = " mapType " ) ]
pub map_type : String ,
2020-03-31 19:07:13 +00:00
/// The spectator type of the game.<br>
/// (Legal values: NONE, LOBBYONLY, ALL)
#[ serde(rename = " spectatorType " ) ]
pub spectator_type : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// LobbyEventWrapper data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEventWrapper {
#[ serde(rename = " eventList " ) ]
pub event_list : std ::vec ::Vec < LobbyEvent > ,
}
2020-02-01 21:35:37 +00:00
/// LobbyEvent data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEvent {
/// The summonerId that triggered the event (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2020-03-31 19:07:13 +00:00
/// The type of event that was triggered
#[ serde(rename = " eventType " ) ]
pub event_type : String ,
2019-10-19 21:39:53 +00:00
/// Timestamp from the event
#[ serde(rename = " timestamp " ) ]
pub timestamp : String ,
}
2020-02-01 21:35:37 +00:00
/// ProviderRegistrationParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ProviderRegistrationParameters {
2019-10-27 08:56:22 +00:00
/// The region in which the provider will be running tournaments.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[ serde(rename = " region " ) ]
pub region : String ,
2020-03-31 19:07:13 +00:00
/// The provider's callback URL to which tournament game results in this region should be posted. The URL must be well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port 80, https URLs must use port 443).
#[ serde(rename = " url " ) ]
pub url : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// TournamentRegistrationParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentRegistrationParameters {
/// The provider ID to specify the regional registered provider data to associate this tournament.
#[ serde(rename = " providerId " ) ]
pub provider_id : i32 ,
/// The optional name of the tournament.
#[ serde(rename = " name " ) ]
2019-10-31 08:09:20 +00:00
pub name : Option < String > ,
2019-10-19 21:39:53 +00:00
}
}
2020-02-01 21:35:37 +00:00
/// Data structs used by [`TournamentV4`](crate::endpoints::TournamentV4).
///
/// Note: this module is automatically generated.
2019-10-19 21:39:53 +00:00
#[ allow(dead_code) ]
pub mod tournament_v4 {
2020-02-01 21:35:37 +00:00
/// TournamentCodeParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCodeParameters {
2020-03-31 19:07:13 +00:00
/// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future.
#[ serde(rename = " allowedSummonerIds " ) ]
pub allowed_summoner_ids : Option < std ::vec ::Vec < String > > ,
/// Optional string that may contain any data in any format, if specified at all. Used to denote any custom information about the game.
#[ serde(rename = " metadata " ) ]
pub metadata : Option < String > ,
2019-10-19 21:39:53 +00:00
/// The team size of the game. Valid values are 1-5.
#[ serde(rename = " teamSize " ) ]
pub team_size : i32 ,
2019-10-27 08:56:22 +00:00
/// The pick type of the game.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
2019-10-27 08:56:22 +00:00
/// The map type of the game.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[ serde(rename = " mapType " ) ]
pub map_type : String ,
2020-03-31 19:07:13 +00:00
/// The spectator type of the game.<br>
/// (Legal values: NONE, LOBBYONLY, ALL)
#[ serde(rename = " spectatorType " ) ]
pub spectator_type : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// TournamentCode data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCode {
/// The tournament code.
#[ serde(rename = " code " ) ]
pub code : String ,
/// The spectator mode for the tournament code game.
#[ serde(rename = " spectators " ) ]
pub spectators : String ,
2020-03-31 19:07:13 +00:00
/// The lobby name for the tournament code game.
#[ serde(rename = " lobbyName " ) ]
pub lobby_name : String ,
/// The metadata for tournament code.
#[ serde(rename = " metaData " ) ]
pub meta_data : String ,
/// The password for the tournament code game.
#[ serde(rename = " password " ) ]
pub password : String ,
2019-10-19 21:39:53 +00:00
/// The team size for the tournament code game.
#[ serde(rename = " teamSize " ) ]
pub team_size : i32 ,
2020-03-31 19:07:13 +00:00
/// The provider's ID.
#[ serde(rename = " providerId " ) ]
pub provider_id : i32 ,
2019-10-19 21:39:53 +00:00
/// The pick mode for tournament code game.
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
/// The tournament's ID.
#[ serde(rename = " tournamentId " ) ]
pub tournament_id : i32 ,
/// The tournament code's ID.
#[ serde(rename = " id " ) ]
pub id : i32 ,
2020-03-31 19:07:13 +00:00
/// The tournament code's region.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[ serde(rename = " region " ) ]
pub region : String ,
/// The game map for the tournament code game
#[ serde(rename = " map " ) ]
pub map : String ,
/// The summonerIds of the participants (Encrypted)
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < String > ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// TournamentCodeUpdateParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCodeUpdateParameters {
2020-03-31 19:07:13 +00:00
/// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future.
#[ serde(rename = " allowedSummonerIds " ) ]
pub allowed_summoner_ids : Option < std ::vec ::Vec < String > > ,
2019-10-27 08:56:22 +00:00
/// The pick type<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
2019-10-27 08:56:22 +00:00
/// The map type<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[ serde(rename = " mapType " ) ]
pub map_type : String ,
2020-03-31 19:07:13 +00:00
/// The spectator type<br>
/// (Legal values: NONE, LOBBYONLY, ALL)
#[ serde(rename = " spectatorType " ) ]
pub spectator_type : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// LobbyEventWrapper data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEventWrapper {
#[ serde(rename = " eventList " ) ]
pub event_list : std ::vec ::Vec < LobbyEvent > ,
}
2020-02-01 21:35:37 +00:00
/// LobbyEvent data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEvent {
/// Timestamp from the event
#[ serde(rename = " timestamp " ) ]
pub timestamp : String ,
/// The type of event that was triggered
#[ serde(rename = " eventType " ) ]
pub event_type : String ,
2020-03-31 19:07:13 +00:00
/// The summonerId that triggered the event (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// ProviderRegistrationParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ProviderRegistrationParameters {
2019-10-27 08:56:22 +00:00
/// The region in which the provider will be running tournaments.<br>
2019-10-19 21:39:53 +00:00
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[ serde(rename = " region " ) ]
pub region : String ,
2020-03-31 19:07:13 +00:00
/// The provider's callback URL to which tournament game results in this region should be posted. The URL must be well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port 80, https URLs must use port 443).
#[ serde(rename = " url " ) ]
pub url : String ,
2019-10-19 21:39:53 +00:00
}
2020-02-01 21:35:37 +00:00
/// TournamentRegistrationParameters data object.
2019-10-19 21:39:53 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentRegistrationParameters {
/// The provider ID to specify the regional registered provider data to associate this tournament.
#[ serde(rename = " providerId " ) ]
pub provider_id : i32 ,
/// The optional name of the tournament.
#[ serde(rename = " name " ) ]
2019-10-31 08:09:20 +00:00
pub name : Option < String > ,
2019-10-19 21:39:53 +00:00
}
}
2020-07-10 08:56:41 +00:00
/// Data structs used by [`ValContentV1`](crate::endpoints::ValContentV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod val_content_v1 {
/// Content data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Content {
#[ serde(rename = " version " ) ]
pub version : String ,
#[ serde(rename = " characters " ) ]
pub characters : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " maps " ) ]
pub maps : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " chromas " ) ]
pub chromas : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " skins " ) ]
pub skins : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " skinLevels " ) ]
pub skin_levels : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " equips " ) ]
pub equips : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " gameModes " ) ]
pub game_modes : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " sprays " ) ]
pub sprays : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " sprayLevels " ) ]
pub spray_levels : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " charms " ) ]
pub charms : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " charmLevels " ) ]
pub charm_levels : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " playerCards " ) ]
pub player_cards : std ::vec ::Vec < ContentItem > ,
#[ serde(rename = " playerTitles " ) ]
pub player_titles : std ::vec ::Vec < ContentItem > ,
}
/// ContentItem data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ContentItem {
#[ serde(rename = " name " ) ]
pub name : String ,
/// This field is excluded from the response when a locale is set
#[ serde(rename = " localizedNames " ) ]
pub localized_names : Option < LocalizedNames > ,
#[ serde(rename = " assetName " ) ]
pub asset_name : String ,
}
/// LocalizedNames data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LocalizedNames {
#[ serde(rename = " ar-AE " ) ]
pub ar_ae : String ,
#[ serde(rename = " de-DE " ) ]
pub de_de : String ,
#[ serde(rename = " en-GB " ) ]
pub en_gb : String ,
#[ serde(rename = " en-US " ) ]
pub en_us : String ,
#[ serde(rename = " es-ES " ) ]
pub es_es : String ,
#[ serde(rename = " es-MX " ) ]
pub es_mx : String ,
#[ serde(rename = " fr-FR " ) ]
pub fr_fr : String ,
#[ serde(rename = " id-ID " ) ]
pub id_id : String ,
#[ serde(rename = " it-IT " ) ]
pub it_it : String ,
#[ serde(rename = " ja-JP " ) ]
pub ja_jp : String ,
#[ serde(rename = " ko-KR " ) ]
pub ko_kr : String ,
#[ serde(rename = " pl-PL " ) ]
pub pl_pl : String ,
#[ serde(rename = " pt-BR " ) ]
pub pt_br : String ,
#[ serde(rename = " ru-RU " ) ]
pub ru_ru : String ,
#[ serde(rename = " th-TH " ) ]
pub th_th : String ,
#[ serde(rename = " tr-TR " ) ]
pub tr_tr : String ,
#[ serde(rename = " vi-VN " ) ]
pub vi_vn : String ,
#[ serde(rename = " zh-CN " ) ]
pub zh_cn : String ,
#[ serde(rename = " zh-TW " ) ]
pub zh_tw : String ,
}
}
/// Data structs used by [`ValMatchV1`](crate::endpoints::ValMatchV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod val_match_v1 {
/// Match data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
#[ serde(rename = " matchInfo " ) ]
2020-09-02 00:27:28 +00:00
pub match_info : MatchInfo ,
2020-07-10 08:56:41 +00:00
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
#[ serde(rename = " teams " ) ]
pub teams : std ::vec ::Vec < Team > ,
#[ serde(rename = " roundResults " ) ]
pub round_results : std ::vec ::Vec < RoundResult > ,
}
/// MatchInfo data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchInfo {
#[ serde(rename = " matchId " ) ]
pub match_id : String ,
#[ serde(rename = " mapId " ) ]
pub map_id : String ,
#[ serde(rename = " gameLengthMillis " ) ]
pub game_length_millis : i32 ,
#[ serde(rename = " gameStartMillis " ) ]
pub game_start_millis : i64 ,
#[ serde(rename = " provisioningFlowId " ) ]
pub provisioning_flow_id : String ,
#[ serde(rename = " isCompleted " ) ]
pub is_completed : bool ,
#[ serde(rename = " customGameName " ) ]
pub custom_game_name : String ,
#[ serde(rename = " queueId " ) ]
pub queue_id : String ,
#[ serde(rename = " gameMode " ) ]
pub game_mode : String ,
#[ serde(rename = " isRanked " ) ]
pub is_ranked : bool ,
#[ serde(rename = " seasonId " ) ]
pub season_id : String ,
}
/// Player data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " teamId " ) ]
pub team_id : String ,
#[ serde(rename = " partyId " ) ]
pub party_id : String ,
#[ serde(rename = " characterId " ) ]
pub character_id : String ,
#[ serde(rename = " stats " ) ]
pub stats : PlayerStats ,
#[ serde(rename = " competitiveTier " ) ]
pub competitive_tier : i32 ,
#[ serde(rename = " playerCard " ) ]
pub player_card : String ,
#[ serde(rename = " playerTitle " ) ]
pub player_title : String ,
}
/// PlayerStats data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlayerStats {
2020-08-03 03:21:23 +00:00
#[ serde(rename = " score " ) ]
pub score : i32 ,
#[ serde(rename = " roundsPlayed " ) ]
pub rounds_played : i32 ,
#[ serde(rename = " kills " ) ]
pub kills : i32 ,
#[ serde(rename = " deaths " ) ]
pub deaths : i32 ,
#[ serde(rename = " assists " ) ]
pub assists : i32 ,
#[ serde(rename = " playtimeMillis " ) ]
pub playtime_millis : i32 ,
#[ serde(rename = " abilityCasts " ) ]
pub ability_casts : AbilityCasts ,
}
/// AbilityCasts data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct AbilityCasts {
#[ serde(rename = " grenadeCasts " ) ]
pub grenade_casts : i32 ,
#[ serde(rename = " ability1Casts " ) ]
pub ability1_casts : i32 ,
#[ serde(rename = " ability2Casts " ) ]
pub ability2_casts : i32 ,
#[ serde(rename = " ultimateCasts " ) ]
pub ultimate_casts : i32 ,
}
/// Team data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Team {
2020-09-02 00:27:28 +00:00
/// This is an arbitrary string. Red and Blue in bomb modes. The puuid of the player in deathmatch.
2020-08-03 03:21:23 +00:00
#[ serde(rename = " teamId " ) ]
pub team_id : String ,
#[ serde(rename = " won " ) ]
pub won : bool ,
#[ serde(rename = " roundsPlayed " ) ]
pub rounds_played : i32 ,
#[ serde(rename = " roundsWon " ) ]
pub rounds_won : i32 ,
2020-09-02 00:27:28 +00:00
/// Team points scored. Number of kills in deathmatch.
#[ serde(rename = " numPoints " ) ]
pub num_points : i32 ,
2020-08-03 03:21:23 +00:00
}
/// RoundResult data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct RoundResult {
#[ serde(rename = " roundNum " ) ]
pub round_num : i32 ,
#[ serde(rename = " roundResult " ) ]
pub round_result : String ,
#[ serde(rename = " roundCeremony " ) ]
pub round_ceremony : String ,
#[ serde(rename = " winningTeam " ) ]
pub winning_team : String ,
/// PUUID of player
#[ serde(rename = " bombPlanter " ) ]
pub bomb_planter : String ,
/// PUUID of player
#[ serde(rename = " bombDefuser " ) ]
pub bomb_defuser : String ,
#[ serde(rename = " plantRoundTime " ) ]
pub plant_round_time : i32 ,
#[ serde(rename = " plantPlayerLocations " ) ]
pub plant_player_locations : std ::vec ::Vec < PlayerLocations > ,
#[ serde(rename = " plantLocation " ) ]
pub plant_location : Location ,
#[ serde(rename = " plantSite " ) ]
pub plant_site : String ,
#[ serde(rename = " defuseRoundTime " ) ]
pub defuse_round_time : i32 ,
#[ serde(rename = " defusePlayerLocations " ) ]
pub defuse_player_locations : std ::vec ::Vec < PlayerLocations > ,
#[ serde(rename = " defuseLocation " ) ]
pub defuse_location : Location ,
#[ serde(rename = " playerStats " ) ]
pub player_stats : std ::vec ::Vec < PlayerRoundStats > ,
#[ serde(rename = " roundResultCode " ) ]
pub round_result_code : String ,
}
/// PlayerLocations data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlayerLocations {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " viewRadians " ) ]
pub view_radians : f32 ,
#[ serde(rename = " location " ) ]
pub location : Location ,
}
/// Location data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Location {
#[ serde(rename = " x " ) ]
pub x : i32 ,
#[ serde(rename = " y " ) ]
pub y : i32 ,
}
/// PlayerRoundStats data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlayerRoundStats {
2020-07-10 08:56:41 +00:00
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " kills " ) ]
pub kills : std ::vec ::Vec < Kill > ,
#[ serde(rename = " damage " ) ]
pub damage : std ::vec ::Vec < Damage > ,
#[ serde(rename = " score " ) ]
pub score : i32 ,
#[ serde(rename = " economy " ) ]
pub economy : Economy ,
#[ serde(rename = " ability " ) ]
pub ability : Ability ,
}
/// Kill data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Kill {
#[ serde(rename = " gameTime " ) ]
2020-09-02 00:27:28 +00:00
pub game_time : Option < i32 > ,
2020-07-10 08:56:41 +00:00
#[ serde(rename = " roundTime " ) ]
2020-09-02 00:27:28 +00:00
pub round_time : Option < i32 > ,
#[ serde(rename = " timeSinceGameStartMillis " ) ]
pub time_since_game_start_millis : Option < i32 > ,
#[ serde(rename = " timeSinceRoundStartMillis " ) ]
pub time_since_round_start_millis : Option < i32 > ,
2020-07-10 08:56:41 +00:00
/// PUUID
#[ serde(rename = " killer " ) ]
pub killer : String ,
/// PUUID
#[ serde(rename = " victim " ) ]
pub victim : String ,
#[ serde(rename = " victimLocation " ) ]
pub victim_location : Location ,
/// List of PUUIDs
#[ serde(rename = " assistants " ) ]
pub assistants : std ::vec ::Vec < String > ,
#[ serde(rename = " playerLocations " ) ]
pub player_locations : std ::vec ::Vec < PlayerLocations > ,
#[ serde(rename = " finishingDamage " ) ]
pub finishing_damage : FinishingDamage ,
}
/// FinishingDamage data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct FinishingDamage {
#[ serde(rename = " damageType " ) ]
pub damage_type : String ,
#[ serde(rename = " damageItem " ) ]
pub damage_item : String ,
#[ serde(rename = " isSecondaryFireMode " ) ]
pub is_secondary_fire_mode : bool ,
}
/// Damage data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Damage {
/// PUUID
#[ serde(rename = " receiver " ) ]
pub receiver : String ,
#[ serde(rename = " damage " ) ]
pub damage : i32 ,
#[ serde(rename = " legshots " ) ]
pub legshots : i32 ,
#[ serde(rename = " bodyshots " ) ]
pub bodyshots : i32 ,
#[ serde(rename = " headshots " ) ]
pub headshots : i32 ,
}
/// Economy data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Economy {
#[ serde(rename = " loadoutValue " ) ]
pub loadout_value : i32 ,
#[ serde(rename = " weapon " ) ]
pub weapon : String ,
#[ serde(rename = " armor " ) ]
pub armor : String ,
#[ serde(rename = " remaining " ) ]
pub remaining : i32 ,
#[ serde(rename = " spent " ) ]
pub spent : i32 ,
}
/// Ability data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Ability {
#[ serde(rename = " grenadeEffects " ) ]
pub grenade_effects : String ,
#[ serde(rename = " ability1Effects " ) ]
pub ability1_effects : String ,
#[ serde(rename = " ability2Effects " ) ]
pub ability2_effects : String ,
#[ serde(rename = " ultimateEffects " ) ]
pub ultimate_effects : String ,
}
/// Matchlist data object.
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Matchlist {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " history " ) ]
2020-09-02 00:27:28 +00:00
pub history : std ::vec ::Vec < MatchlistEntry > ,
2020-07-10 08:56:41 +00:00
}
2020-09-02 00:27:28 +00:00
/// MatchlistEntry data object.
2020-07-10 08:56:41 +00:00
#[ derive(Debug) ]
#[ derive(serde::Serialize, serde::Deserialize) ]
2020-09-02 00:27:28 +00:00
pub struct MatchlistEntry {
2020-07-10 08:56:41 +00:00
#[ serde(rename = " matchId " ) ]
pub match_id : String ,
2020-08-03 03:21:23 +00:00
#[ serde(rename = " gameStartTimeMillis " ) ]
pub game_start_time_millis : i64 ,
2020-07-10 08:56:41 +00:00
#[ serde(rename = " teamId " ) ]
pub team_id : String ,
}
}