2019-10-31 08:09:20 +00:00
///////////////////////////////////////////////
// //
// ! //
// This file is automatically generated! //
// Do not directly edit! //
// //
2021-01-16 22:16:56 +00:00
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
2021-12-29 17:35:09 +00:00
// Version 517bb1adbfb393d65b8829b208ebe331bb6e73dc
2021-01-16 22:16:56 +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.
/// Data structs used by [`AccountV1`](crate::endpoints::AccountV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod account_v1 {
/// Account data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Account {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
2021-04-02 07:07:38 +00:00
/// This field may be excluded from the response if the account doesn't have a gameName.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " gameName " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub game_name : Option < String > ,
2021-04-02 07:07:38 +00:00
/// This field may be excluded from the response if the account doesn't have a tagLine.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " tagLine " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub tag_line : Option < String > ,
}
/// ActiveShard data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
}
/// Data structs used by [`ChampionMasteryV4`](crate::endpoints::ChampionMasteryV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod champion_mastery_v4 {
/// ChampionMastery data object.
/// # Description
/// This object contains single Champion Mastery information for player and champion combination.
///
/// Note: This struct is automatically generated
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ChampionMastery {
/// 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 ,
/// 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 " ) ]
pub champion_id : crate ::consts ::Champion ,
/// Last time this champion was played by this player - in Unix milliseconds time format.
#[ serde(rename = " lastPlayTime " ) ]
pub last_play_time : i64 ,
/// Champion level for specified player and champion combination.
#[ serde(rename = " championLevel " ) ]
pub champion_level : i32 ,
/// Summoner ID for this entry. (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
/// 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 at the current championLevel. When the championLevel is advanced the tokensEarned resets to 0.
#[ serde(rename = " tokensEarned " ) ]
pub tokens_earned : i32 ,
}
}
/// Data structs used by [`ChampionV3`](crate::endpoints::ChampionV3).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod champion_v3 {
/// ChampionInfo data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ChampionInfo {
#[ serde(rename = " maxNewPlayerLevel " ) ]
pub max_new_player_level : i32 ,
#[ serde(rename = " freeChampionIdsForNewPlayers " ) ]
pub free_champion_ids_for_new_players : std ::vec ::Vec < crate ::consts ::Champion > ,
#[ serde(rename = " freeChampionIds " ) ]
pub free_champion_ids : std ::vec ::Vec < crate ::consts ::Champion > ,
}
}
/// Data structs used by [`ClashV1`](crate::endpoints::ClashV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod clash_v1 {
/// Player data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " teamId " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-20 21:11:16 +00:00
pub team_id : Option < String > ,
2021-01-16 22:16:56 +00:00
/// (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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
}
/// Data structs used by [`LeagueExpV4`](crate::endpoints::LeagueExpV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod league_exp_v4 {
/// LeagueEntry data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueEntry {
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
/// Player's summonerId (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " queueType " ) ]
pub queue_type : crate ::consts ::QueueType ,
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
2021-05-09 16:46:10 +00:00
/// The player's division within a tier.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
/// 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 ,
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " miniSeries " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub mini_series : Option < MiniSeries > ,
}
/// MiniSeries data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MiniSeries {
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
#[ serde(rename = " progress " ) ]
pub progress : String ,
#[ serde(rename = " target " ) ]
pub target : i32 ,
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
}
}
/// Data structs used by [`LeagueV4`](crate::endpoints::LeagueV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod league_v4 {
/// LeagueList data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueList {
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
#[ serde(rename = " entries " ) ]
pub entries : std ::vec ::Vec < LeagueItem > ,
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " queue " ) ]
pub queue : crate ::consts ::QueueType ,
}
/// LeagueItem data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueItem {
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
/// Winning team on Summoners Rift.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " miniSeries " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub mini_series : Option < MiniSeries > ,
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
/// Losing team on Summoners Rift.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
}
/// MiniSeries data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MiniSeries {
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
#[ serde(rename = " progress " ) ]
pub progress : String ,
#[ serde(rename = " target " ) ]
pub target : i32 ,
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
}
/// LeagueEntry data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueEntry {
#[ serde(rename = " leagueId " ) ]
2021-11-20 02:53:32 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub league_id : Option < String > ,
2021-01-16 22:16:56 +00:00
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " queueType " ) ]
pub queue_type : crate ::consts ::QueueType ,
#[ serde(rename = " tier " ) ]
2021-11-20 02:53:32 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub tier : Option < crate ::consts ::Tier > ,
2021-05-09 16:46:10 +00:00
/// The player's division within a tier.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " rank " ) ]
2021-11-20 02:53:32 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub rank : Option < crate ::consts ::Division > ,
2021-01-16 22:16:56 +00:00
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
/// Winning team on Summoners Rift.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
/// Losing team on Summoners Rift.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " miniSeries " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub mini_series : Option < MiniSeries > ,
}
}
/// Data structs used by [`LolStatusV3`](crate::endpoints::LolStatusV3).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lol_status_v3 {
/// ShardStatus data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ShardStatus {
#[ serde(rename = " locales " ) ]
pub locales : std ::vec ::Vec < String > ,
#[ serde(rename = " hostname " ) ]
pub hostname : String ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " services " ) ]
pub services : std ::vec ::Vec < Service > ,
#[ serde(rename = " slug " ) ]
pub slug : String ,
#[ serde(rename = " region_tag " ) ]
pub region_tag : String ,
}
/// Service data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Service {
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " slug " ) ]
pub slug : String ,
#[ serde(rename = " status " ) ]
pub status : String ,
#[ serde(rename = " incidents " ) ]
pub incidents : std ::vec ::Vec < Incident > ,
}
/// Incident data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Incident {
#[ serde(rename = " id " ) ]
pub id : i64 ,
#[ serde(rename = " active " ) ]
pub active : bool ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " updates " ) ]
pub updates : std ::vec ::Vec < Message > ,
}
/// Message data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Message {
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " author " ) ]
pub author : String ,
#[ serde(rename = " heading " ) ]
pub heading : String ,
#[ serde(rename = " content " ) ]
pub content : String ,
#[ serde(rename = " severity " ) ]
pub severity : String ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
#[ serde(rename = " translations " ) ]
pub translations : std ::vec ::Vec < Translation > ,
}
/// Translation data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Translation {
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
#[ serde(rename = " locale " ) ]
pub locale : String ,
#[ serde(rename = " content " ) ]
pub content : String ,
}
}
/// Data structs used by [`LolStatusV4`](crate::endpoints::LolStatusV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lol_status_v4 {
/// PlatformData data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlatformData {
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " locales " ) ]
pub locales : std ::vec ::Vec < String > ,
#[ serde(rename = " maintenances " ) ]
pub maintenances : std ::vec ::Vec < Status > ,
#[ serde(rename = " incidents " ) ]
pub incidents : std ::vec ::Vec < Status > ,
}
/// Status data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Status {
#[ serde(rename = " id " ) ]
pub id : i32 ,
/// (Legal values: scheduled, in_progress, complete)
#[ serde(rename = " maintenance_status " ) ]
pub maintenance_status : String ,
/// (Legal values: info, warning, critical)
#[ serde(rename = " incident_severity " ) ]
pub incident_severity : String ,
#[ serde(rename = " titles " ) ]
pub titles : std ::vec ::Vec < Content > ,
#[ serde(rename = " updates " ) ]
pub updates : std ::vec ::Vec < Update > ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " archive_at " ) ]
pub archive_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
/// (Legal values: windows, macos, android, ios, ps4, xbone, switch)
#[ serde(rename = " platforms " ) ]
pub platforms : std ::vec ::Vec < String > ,
}
/// Content data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Content {
#[ serde(rename = " locale " ) ]
pub locale : String ,
#[ serde(rename = " content " ) ]
pub content : String ,
}
/// Update data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Update {
#[ serde(rename = " id " ) ]
pub id : i32 ,
#[ serde(rename = " author " ) ]
pub author : String ,
#[ serde(rename = " publish " ) ]
pub publish : bool ,
/// (Legal values: riotclient, riotstatus, game)
#[ serde(rename = " publish_locations " ) ]
pub publish_locations : std ::vec ::Vec < String > ,
#[ serde(rename = " translations " ) ]
pub translations : std ::vec ::Vec < Content > ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
}
}
2021-05-20 21:11:16 +00:00
/// Data structs used by [`LorDeckV1`](crate::endpoints::LorDeckV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lor_deck_v1 {
/// Deck data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-20 21:11:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Deck {
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " code " ) ]
pub code : String ,
}
/// NewDeck data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-20 21:11:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct NewDeck {
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " code " ) ]
pub code : String ,
}
}
/// Data structs used by [`LorInventoryV1`](crate::endpoints::LorInventoryV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lor_inventory_v1 {
/// Card data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-20 21:11:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Card {
#[ serde(rename = " code " ) ]
pub code : String ,
#[ serde(rename = " count " ) ]
pub count : String ,
}
}
2021-01-16 22:16:56 +00:00
/// Data structs used by [`LorMatchV1`](crate::endpoints::LorMatchV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lor_match_v1 {
/// Match data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
/// Match metadata.
#[ serde(rename = " metadata " ) ]
pub metadata : Metadata ,
/// Match info.
#[ serde(rename = " info " ) ]
pub info : Info ,
}
/// Metadata data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
2021-04-02 07:07:38 +00:00
/// A list of participant PUUIDs.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < String > ,
}
/// Info data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Info {
/// (Legal values: Constructed, Expeditions, Tutorial)
#[ serde(rename = " game_mode " ) ]
pub game_mode : String ,
/// (Legal values: Ranked, Normal, AI, Tutorial, VanillaTrial, Singleton, StandardGauntlet)
#[ serde(rename = " game_type " ) ]
pub game_type : String ,
#[ serde(rename = " game_start_time_utc " ) ]
pub game_start_time_utc : String ,
#[ serde(rename = " game_version " ) ]
pub game_version : String ,
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
/// Total turns taken by both players.
#[ serde(rename = " total_turn_count " ) ]
pub total_turn_count : i32 ,
}
/// Player data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " deck_id " ) ]
pub deck_id : String ,
/// Code for the deck played. Refer to LOR documentation for details on deck codes.
#[ serde(rename = " deck_code " ) ]
pub deck_code : String ,
#[ serde(rename = " factions " ) ]
pub factions : std ::vec ::Vec < String > ,
#[ serde(rename = " game_outcome " ) ]
pub game_outcome : String ,
/// The order in which the players took turns.
#[ serde(rename = " order_of_play " ) ]
pub order_of_play : i32 ,
}
}
/// Data structs used by [`LorRankedV1`](crate::endpoints::LorRankedV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lor_ranked_v1 {
/// Leaderboard data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Leaderboard {
/// A list of players in Master tier.
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
}
/// Player data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " rank " ) ]
pub rank : i32 ,
/// League points.
#[ serde(rename = " lp " ) ]
pub lp : i32 ,
}
}
/// Data structs used by [`LorStatusV1`](crate::endpoints::LorStatusV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod lor_status_v1 {
/// PlatformData data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlatformData {
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " locales " ) ]
pub locales : std ::vec ::Vec < String > ,
#[ serde(rename = " maintenances " ) ]
pub maintenances : std ::vec ::Vec < Status > ,
#[ serde(rename = " incidents " ) ]
pub incidents : std ::vec ::Vec < Status > ,
}
/// Status data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Status {
#[ serde(rename = " id " ) ]
pub id : i32 ,
/// (Legal values: scheduled, in_progress, complete)
#[ serde(rename = " maintenance_status " ) ]
pub maintenance_status : String ,
/// (Legal values: info, warning, critical)
#[ serde(rename = " incident_severity " ) ]
pub incident_severity : String ,
#[ serde(rename = " titles " ) ]
pub titles : std ::vec ::Vec < Content > ,
#[ serde(rename = " updates " ) ]
pub updates : std ::vec ::Vec < Update > ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " archive_at " ) ]
pub archive_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
/// (Legal values: windows, macos, android, ios, ps4, xbone, switch)
#[ serde(rename = " platforms " ) ]
pub platforms : std ::vec ::Vec < String > ,
}
/// Content data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Content {
#[ serde(rename = " locale " ) ]
pub locale : String ,
#[ serde(rename = " content " ) ]
pub content : String ,
}
/// Update data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Update {
#[ serde(rename = " id " ) ]
pub id : i32 ,
#[ serde(rename = " author " ) ]
pub author : String ,
#[ serde(rename = " publish " ) ]
pub publish : bool ,
/// (Legal values: riotclient, riotstatus, game)
#[ serde(rename = " publish_locations " ) ]
pub publish_locations : std ::vec ::Vec < String > ,
#[ serde(rename = " translations " ) ]
pub translations : std ::vec ::Vec < Content > ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
}
}
2021-05-09 16:46:10 +00:00
/// Data structs used by [`MatchV5`](crate::endpoints::MatchV5).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod match_v5 {
/// Match data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-09 16:46:10 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
2021-09-03 04:22:16 +00:00
/// Match metadata.
2021-05-31 05:27:21 +00:00
#[ serde(rename = " metadata " ) ]
2021-09-03 04:22:16 +00:00
pub metadata : Metadata ,
/// Match info.
2021-05-31 05:27:21 +00:00
#[ serde(rename = " info " ) ]
2021-09-03 04:22:16 +00:00
pub info : Info ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// Metadata data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct Metadata {
/// Match data version.
2021-09-28 02:38:20 +00:00
#[ serde(rename = " dataVersion " ) ]
2021-05-31 05:27:21 +00:00
pub data_version : String ,
2021-09-03 04:22:16 +00:00
/// Match id.
2021-09-28 02:38:20 +00:00
#[ serde(rename = " matchId " ) ]
2021-05-31 05:27:21 +00:00
pub match_id : String ,
2021-09-03 04:22:16 +00:00
/// A list of participant PUUIDs.
2021-05-31 05:27:21 +00:00
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < String > ,
}
2021-09-03 04:22:16 +00:00
/// Info data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct Info {
2021-10-07 17:12:44 +00:00
/// Unix timestamp for when the game is created on the game server (i.e., the loading screen).
2021-09-03 04:22:16 +00:00
#[ serde(rename = " gameCreation " ) ]
pub game_creation : i64 ,
2021-10-07 17:12:44 +00:00
/// Prior to patch 11.20, this field returns the game length in milliseconds calculated from gameEndTimestamp - gameStartTimestamp. Post patch 11.20, this field returns the max timePlayed of any participant in the game in seconds, which makes the behavior of this field consistent with that of match-v4. The best way to handling the change in this field is to treat the value as milliseconds if the gameEndTimestamp field isn't in the response and to treat the value as seconds if gameEndTimestamp is in the response.
2021-09-03 04:22:16 +00:00
#[ serde(rename = " gameDuration " ) ]
pub game_duration : i64 ,
2021-10-07 17:12:44 +00:00
/// Unix timestamp for when match ends on the game server. This timestamp can occasionally be significantly longer than when the match "ends". The most reliable way of determining the timestamp for the end of the match would be to add the max time played of any participant to the gameStartTimestamp. This field was added to match-v5 in patch 11.20 on Oct 5th, 2021.
#[ serde(rename = " gameEndTimestamp " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub game_end_timestamp : Option < i64 > ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
/// Refer to the Game Constants documentation.
#[ serde(rename = " gameMode " ) ]
2021-10-07 17:12:51 +00:00
pub game_mode : crate ::consts ::GameMode ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " gameName " ) ]
pub game_name : String ,
2021-10-07 17:12:44 +00:00
/// Unix timestamp for when match starts on the game server.
2021-09-03 04:22:16 +00:00
#[ serde(rename = " gameStartTimestamp " ) ]
pub game_start_timestamp : i64 ,
#[ serde(rename = " gameType " ) ]
2021-10-07 17:12:51 +00:00
pub game_type : crate ::consts ::GameType ,
2021-09-03 04:22:16 +00:00
/// The first two parts can be used to determine the patch a game was played on.
#[ serde(rename = " gameVersion " ) ]
pub game_version : String ,
/// Refer to the Game Constants documentation.
#[ serde(rename = " mapId " ) ]
2021-10-07 17:12:51 +00:00
pub map_id : crate ::consts ::Map ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < Participant > ,
/// Platform where the match was played.
#[ serde(rename = " platformId " ) ]
pub platform_id : String ,
/// Refer to the Game Constants documentation.
#[ serde(rename = " queueId " ) ]
2021-10-07 17:12:51 +00:00
pub queue_id : crate ::consts ::Queue ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " teams " ) ]
pub teams : std ::vec ::Vec < Team > ,
2021-10-30 05:21:02 +00:00
/// Tournament code used to generate the match. This field was added to match-v5 in patch 11.13 on June 23rd, 2021.
2021-09-03 04:22:16 +00:00
#[ serde(rename = " tournamentCode " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub tournament_code : Option < String > ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// Participant data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct Participant {
2021-05-31 05:27:21 +00:00
#[ serde(rename = " assists " ) ]
2021-07-23 22:31:02 +00:00
pub assists : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " baronKills " ) ]
2021-07-23 22:31:02 +00:00
pub baron_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " bountyLevel " ) ]
2021-07-23 22:31:02 +00:00
pub bounty_level : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " champExperience " ) ]
2021-07-23 22:31:02 +00:00
pub champ_experience : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " champLevel " ) ]
2021-07-23 22:31:02 +00:00
pub champ_level : i32 ,
2021-10-30 05:21:02 +00:00
/// Prior to patch 11.4, on Feb 18th, 2021, this field returned invalid championIds. We recommend determining the champion based on the championName field for matches played prior to patch 11.4.
2021-05-31 05:27:21 +00:00
#[ serde(rename = " championId " ) ]
2021-12-29 17:34:12 +00:00
#[ serde(serialize_with = " crate::consts::Champion::serialize_result " ) ]
#[ serde(deserialize_with = " crate::consts::Champion::deserialize_result " ) ]
pub champion_id : Result < crate ::consts ::Champion , std ::num ::TryFromIntError > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " championName " ) ]
pub champion_name : String ,
2021-09-10 05:51:15 +00:00
/// This field is currently only utilized for Kayn's transformations. (Legal values: 0 - None, 1 - Slayer, 2 - Assassin)
2021-05-31 05:27:21 +00:00
#[ serde(rename = " championTransform " ) ]
2021-07-23 22:31:02 +00:00
pub champion_transform : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " consumablesPurchased " ) ]
2021-07-23 22:31:02 +00:00
pub consumables_purchased : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " damageDealtToBuildings " ) ]
2021-12-29 17:35:09 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub damage_dealt_to_buildings : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " damageDealtToObjectives " ) ]
2021-07-23 22:31:02 +00:00
pub damage_dealt_to_objectives : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " damageDealtToTurrets " ) ]
2021-07-23 22:31:02 +00:00
pub damage_dealt_to_turrets : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " damageSelfMitigated " ) ]
2021-07-23 22:31:02 +00:00
pub damage_self_mitigated : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " deaths " ) ]
2021-07-23 22:31:02 +00:00
pub deaths : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " detectorWardsPlaced " ) ]
2021-07-23 22:31:02 +00:00
pub detector_wards_placed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " doubleKills " ) ]
2021-07-23 22:31:02 +00:00
pub double_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " dragonKills " ) ]
2021-07-23 22:31:02 +00:00
pub dragon_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " firstBloodAssist " ) ]
pub first_blood_assist : bool ,
#[ serde(rename = " firstBloodKill " ) ]
pub first_blood_kill : bool ,
#[ serde(rename = " firstTowerAssist " ) ]
pub first_tower_assist : bool ,
#[ serde(rename = " firstTowerKill " ) ]
pub first_tower_kill : bool ,
#[ serde(rename = " gameEndedInEarlySurrender " ) ]
pub game_ended_in_early_surrender : bool ,
#[ serde(rename = " gameEndedInSurrender " ) ]
pub game_ended_in_surrender : bool ,
#[ serde(rename = " goldEarned " ) ]
2021-07-23 22:31:02 +00:00
pub gold_earned : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " goldSpent " ) ]
2021-07-23 22:31:02 +00:00
pub gold_spent : i32 ,
2021-09-10 05:51:15 +00:00
/// Both individualPosition and teamPosition are computed by the game server and are different versions of the most likely position played by a player. The individualPosition is the best guess for which position the player actually played in isolation of anything else. The teamPosition is the best guess for which position the player actually played if we add the constraint that each team must have one top player, one jungle, one middle, etc. Generally the recommendation is to use the teamPosition field over the individualPosition field.
2021-05-31 05:27:21 +00:00
#[ serde(rename = " individualPosition " ) ]
pub individual_position : String ,
#[ serde(rename = " inhibitorKills " ) ]
2021-07-23 22:31:02 +00:00
pub inhibitor_kills : i32 ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " inhibitorTakedowns " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub inhibitor_takedowns : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " inhibitorsLost " ) ]
2021-12-29 17:35:09 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub inhibitors_lost : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item0 " ) ]
2021-07-23 22:31:02 +00:00
pub item0 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item1 " ) ]
2021-07-23 22:31:02 +00:00
pub item1 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item2 " ) ]
2021-07-23 22:31:02 +00:00
pub item2 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item3 " ) ]
2021-07-23 22:31:02 +00:00
pub item3 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item4 " ) ]
2021-07-23 22:31:02 +00:00
pub item4 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item5 " ) ]
2021-07-23 22:31:02 +00:00
pub item5 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " item6 " ) ]
2021-07-23 22:31:02 +00:00
pub item6 : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " itemsPurchased " ) ]
2021-07-23 22:31:02 +00:00
pub items_purchased : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " killingSprees " ) ]
2021-07-23 22:31:02 +00:00
pub killing_sprees : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " kills " ) ]
2021-07-23 22:31:02 +00:00
pub kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " lane " ) ]
pub lane : String ,
#[ serde(rename = " largestCriticalStrike " ) ]
2021-07-23 22:31:02 +00:00
pub largest_critical_strike : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " largestKillingSpree " ) ]
2021-07-23 22:31:02 +00:00
pub largest_killing_spree : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " largestMultiKill " ) ]
2021-07-23 22:31:02 +00:00
pub largest_multi_kill : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " longestTimeSpentLiving " ) ]
2021-07-23 22:31:02 +00:00
pub longest_time_spent_living : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicDamageDealt " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage_dealt : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicDamageDealtToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage_dealt_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " neutralMinionsKilled " ) ]
2021-07-23 22:31:02 +00:00
pub neutral_minions_killed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " nexusKills " ) ]
2021-07-23 22:31:02 +00:00
pub nexus_kills : i32 ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " nexusTakedowns " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub nexus_takedowns : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " nexusLost " ) ]
2021-12-29 17:35:09 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub nexus_lost : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " objectivesStolen " ) ]
2021-07-23 22:31:02 +00:00
pub objectives_stolen : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " objectivesStolenAssists " ) ]
2021-07-23 22:31:02 +00:00
pub objectives_stolen_assists : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " participantId " ) ]
2021-07-23 22:31:02 +00:00
pub participant_id : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " pentaKills " ) ]
2021-07-23 22:31:02 +00:00
pub penta_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " perks " ) ]
2021-09-03 04:22:16 +00:00
pub perks : Perks ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamageDealt " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage_dealt : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamageDealtToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage_dealt_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " profileIcon " ) ]
2021-07-23 22:31:02 +00:00
pub profile_icon : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " quadraKills " ) ]
2021-07-23 22:31:02 +00:00
pub quadra_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " riotIdName " ) ]
pub riot_id_name : String ,
#[ serde(rename = " riotIdTagline " ) ]
pub riot_id_tagline : String ,
#[ serde(rename = " role " ) ]
pub role : String ,
#[ serde(rename = " sightWardsBoughtInGame " ) ]
2021-07-23 22:31:02 +00:00
pub sight_wards_bought_in_game : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " spell1Casts " ) ]
2021-07-23 22:31:02 +00:00
pub spell1_casts : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " spell2Casts " ) ]
2021-07-23 22:31:02 +00:00
pub spell2_casts : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " spell3Casts " ) ]
2021-07-23 22:31:02 +00:00
pub spell3_casts : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " spell4Casts " ) ]
2021-07-23 22:31:02 +00:00
pub spell4_casts : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " summoner1Casts " ) ]
2021-07-23 22:31:02 +00:00
pub summoner1_casts : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " summoner1Id " ) ]
2021-07-23 22:31:02 +00:00
pub summoner1_id : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " summoner2Casts " ) ]
2021-07-23 22:31:02 +00:00
pub summoner2_casts : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " summoner2Id " ) ]
2021-07-23 22:31:02 +00:00
pub summoner2_id : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " summonerLevel " ) ]
2021-07-23 22:31:02 +00:00
pub summoner_level : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " teamEarlySurrendered " ) ]
pub team_early_surrendered : bool ,
#[ serde(rename = " teamId " ) ]
2021-10-07 17:12:51 +00:00
pub team_id : crate ::consts ::Team ,
2021-09-10 05:51:15 +00:00
/// Both individualPosition and teamPosition are computed by the game server and are different versions of the most likely position played by a player. The individualPosition is the best guess for which position the player actually played in isolation of anything else. The teamPosition is the best guess for which position the player actually played if we add the constraint that each team must have one top player, one jungle, one middle, etc. Generally the recommendation is to use the teamPosition field over the individualPosition field.
2021-05-31 05:27:21 +00:00
#[ serde(rename = " teamPosition " ) ]
pub team_position : String ,
#[ serde(rename = " timeCCingOthers " ) ]
2021-07-23 22:31:02 +00:00
pub time_c_cing_others : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " timePlayed " ) ]
2021-07-23 22:31:02 +00:00
pub time_played : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageDealt " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_dealt : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageDealtToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_dealt_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageShieldedOnTeammates " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_shielded_on_teammates : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalHeal " ) ]
2021-07-23 22:31:02 +00:00
pub total_heal : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalHealsOnTeammates " ) ]
2021-07-23 22:31:02 +00:00
pub total_heals_on_teammates : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalMinionsKilled " ) ]
2021-07-23 22:31:02 +00:00
pub total_minions_killed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalTimeCCDealt " ) ]
2021-07-23 22:31:02 +00:00
pub total_time_cc_dealt : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalTimeSpentDead " ) ]
2021-07-23 22:31:02 +00:00
pub total_time_spent_dead : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalUnitsHealed " ) ]
2021-07-23 22:31:02 +00:00
pub total_units_healed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " tripleKills " ) ]
2021-07-23 22:31:02 +00:00
pub triple_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamageDealt " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage_dealt : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamageDealtToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage_dealt_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " turretKills " ) ]
2021-07-23 22:31:02 +00:00
pub turret_kills : i32 ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " turretTakedowns " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub turret_takedowns : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " turretsLost " ) ]
2021-12-29 17:35:09 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub turrets_lost : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " unrealKills " ) ]
2021-07-23 22:31:02 +00:00
pub unreal_kills : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " visionScore " ) ]
2021-07-23 22:31:02 +00:00
pub vision_score : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " visionWardsBoughtInGame " ) ]
2021-07-23 22:31:02 +00:00
pub vision_wards_bought_in_game : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " wardsKilled " ) ]
2021-07-23 22:31:02 +00:00
pub wards_killed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " wardsPlaced " ) ]
2021-07-23 22:31:02 +00:00
pub wards_placed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " win " ) ]
pub win : bool ,
}
2021-09-03 04:22:16 +00:00
/// Perks data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct Perks {
#[ serde(rename = " statPerks " ) ]
pub stat_perks : PerkStats ,
#[ serde(rename = " styles " ) ]
pub styles : std ::vec ::Vec < PerkStyle > ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// PerkStats data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct PerkStats {
#[ serde(rename = " defense " ) ]
pub defense : i32 ,
#[ serde(rename = " flex " ) ]
pub flex : i32 ,
#[ serde(rename = " offense " ) ]
pub offense : i32 ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// PerkStyle data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct PerkStyle {
#[ serde(rename = " description " ) ]
pub description : String ,
#[ serde(rename = " selections " ) ]
pub selections : std ::vec ::Vec < PerkStyleSelection > ,
#[ serde(rename = " style " ) ]
pub style : i32 ,
}
/// PerkStyleSelection data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-09-03 04:22:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PerkStyleSelection {
#[ serde(rename = " perk " ) ]
pub perk : i32 ,
#[ serde(rename = " var1 " ) ]
pub var1 : i32 ,
#[ serde(rename = " var2 " ) ]
pub var2 : i32 ,
#[ serde(rename = " var3 " ) ]
pub var3 : i32 ,
}
/// Team data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-09-03 04:22:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Team {
#[ serde(rename = " bans " ) ]
pub bans : std ::vec ::Vec < Ban > ,
#[ serde(rename = " objectives " ) ]
pub objectives : Objectives ,
#[ serde(rename = " teamId " ) ]
2021-10-07 17:12:51 +00:00
pub team_id : crate ::consts ::Team ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " win " ) ]
pub win : bool ,
}
/// Ban data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-09-03 04:22:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Ban {
#[ serde(rename = " championId " ) ]
2021-10-07 17:12:51 +00:00
pub champion_id : crate ::consts ::Champion ,
2021-09-03 04:22:16 +00:00
#[ serde(rename = " pickTurn " ) ]
pub pick_turn : i32 ,
}
/// Objectives data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-09-03 04:22:16 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Objectives {
2021-05-31 05:27:21 +00:00
#[ serde(rename = " baron " ) ]
2021-09-03 04:22:16 +00:00
pub baron : Objective ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " champion " ) ]
2021-09-03 04:22:16 +00:00
pub champion : Objective ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " dragon " ) ]
2021-09-03 04:22:16 +00:00
pub dragon : Objective ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " inhibitor " ) ]
2021-09-03 04:22:16 +00:00
pub inhibitor : Objective ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " riftHerald " ) ]
2021-09-03 04:22:16 +00:00
pub rift_herald : Objective ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " tower " ) ]
2021-09-03 04:22:16 +00:00
pub tower : Objective ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// Objective data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct Objective {
#[ serde(rename = " first " ) ]
pub first : bool ,
#[ serde(rename = " kills " ) ]
pub kills : i32 ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// MatchTimeline data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct MatchTimeline {
#[ serde(rename = " metadata " ) ]
pub metadata : Metadata ,
#[ serde(rename = " info " ) ]
pub info : MatchTimelineInfo ,
2021-05-31 05:27:21 +00:00
}
/// MatchTimelineInfoFrameEvent data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrameEvent {
#[ serde(rename = " realTimestamp " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-09-03 04:22:16 +00:00
pub real_timestamp : Option < i64 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " timestamp " ) ]
2021-07-23 22:31:02 +00:00
pub timestamp : i32 ,
2021-09-09 21:31:39 +00:00
/// Timeline event type.<br>
2021-09-03 04:22:16 +00:00
/// (Known legal values: ASCENDED_EVENT, BUILDING_KILL, CAPTURE_POINT, CHAMPION_KILL, CHAMPION_SPECIAL_KILL, CHAMPION_TRANSFORM, DRAGON_SOUL_GIVEN, ELITE_MONSTER_KILL, GAME_END, ITEM_DESTROYED, ITEM_PURCHASED, ITEM_SOLD, ITEM_UNDO, LEVEL_UP, PAUSE_END, PAUSE_START, SKILL_LEVEL_UP, TURRET_PLATE_DESTROYED, WARD_KILL, WARD_PLACED)
2021-05-31 05:27:21 +00:00
#[ serde(rename = " type " ) ]
pub r#type : String ,
#[ serde(rename = " itemId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub item_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " participantId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub participant_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " levelUpType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub level_up_type : Option < String > ,
#[ serde(rename = " skillSlot " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub skill_slot : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " creatorId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub creator_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " wardType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub ward_type : Option < String > ,
#[ serde(rename = " level " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub level : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " assistingParticipantIds " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub assisting_participant_ids : Option < std ::vec ::Vec < i32 > > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " bounty " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub bounty : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " killStreakLength " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub kill_streak_length : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " killerId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub killer_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " position " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-09-03 04:22:16 +00:00
pub position : Option < MatchTimelinePosition > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " victimDamageDealt " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub victim_damage_dealt : Option < std ::vec ::Vec < MatchTimelineInfoFrameEventVictimDamageDealt > > ,
#[ serde(rename = " victimDamageReceived " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub victim_damage_received : Option < std ::vec ::Vec < MatchTimelineInfoFrameEventVictimDamageDealt > > ,
#[ serde(rename = " victimId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub victim_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " killType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub kill_type : Option < String > ,
#[ serde(rename = " laneType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub lane_type : Option < String > ,
#[ serde(rename = " teamId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub team_id : Option < crate ::consts ::Team > ,
#[ serde(rename = " multiKillLength " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub multi_kill_length : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " killerTeamId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub killer_team_id : Option < crate ::consts ::Team > ,
#[ serde(rename = " monsterType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub monster_type : Option < String > ,
#[ serde(rename = " monsterSubType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub monster_sub_type : Option < String > ,
#[ serde(rename = " buildingType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub building_type : Option < String > ,
#[ serde(rename = " towerType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub tower_type : Option < String > ,
#[ serde(rename = " afterId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub after_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " beforeId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub before_id : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " goldGain " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub gold_gain : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " gameId " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-09-03 04:22:16 +00:00
pub game_id : Option < i64 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " winningTeam " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-07-23 22:31:02 +00:00
pub winning_team : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " transformType " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub transform_type : Option < String > ,
#[ serde(rename = " name " ) ]
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub name : Option < String > ,
}
/// MatchTimelineInfoFrameParticipantFrameChampionStats data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrameParticipantFrameChampionStats {
#[ serde(rename = " abilityHaste " ) ]
2021-11-10 03:07:31 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub ability_haste : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " abilityPower " ) ]
2021-07-23 22:31:02 +00:00
pub ability_power : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " armor " ) ]
2021-07-23 22:31:02 +00:00
pub armor : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " armorPen " ) ]
2021-07-23 22:31:02 +00:00
pub armor_pen : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " armorPenPercent " ) ]
2021-07-23 22:31:02 +00:00
pub armor_pen_percent : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " attackDamage " ) ]
2021-07-23 22:31:02 +00:00
pub attack_damage : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " attackSpeed " ) ]
2021-07-23 22:31:02 +00:00
pub attack_speed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " bonusArmorPenPercent " ) ]
2021-07-23 22:31:02 +00:00
pub bonus_armor_pen_percent : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " bonusMagicPenPercent " ) ]
2021-07-23 22:31:02 +00:00
pub bonus_magic_pen_percent : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " ccReduction " ) ]
2021-07-23 22:31:02 +00:00
pub cc_reduction : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " cooldownReduction " ) ]
2021-07-23 22:31:02 +00:00
pub cooldown_reduction : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " health " ) ]
2021-07-23 22:31:02 +00:00
pub health : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " healthMax " ) ]
2021-07-23 22:31:02 +00:00
pub health_max : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " healthRegen " ) ]
2021-07-23 22:31:02 +00:00
pub health_regen : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " lifesteal " ) ]
2021-07-23 22:31:02 +00:00
pub lifesteal : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicPen " ) ]
2021-07-23 22:31:02 +00:00
pub magic_pen : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicPenPercent " ) ]
2021-07-23 22:31:02 +00:00
pub magic_pen_percent : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicResist " ) ]
2021-07-23 22:31:02 +00:00
pub magic_resist : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " movementSpeed " ) ]
2021-07-23 22:31:02 +00:00
pub movement_speed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " omnivamp " ) ]
2021-11-10 03:07:31 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub omnivamp : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalVamp " ) ]
2021-11-10 03:07:31 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub physical_vamp : Option < i32 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " power " ) ]
2021-07-23 22:31:02 +00:00
pub power : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " powerMax " ) ]
2021-07-23 22:31:02 +00:00
pub power_max : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " powerRegen " ) ]
2021-07-23 22:31:02 +00:00
pub power_regen : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " spellVamp " ) ]
2021-07-23 22:31:02 +00:00
pub spell_vamp : i32 ,
2021-05-31 05:27:21 +00:00
}
/// MatchTimelineInfoFrameParticipantFrameDamageStats data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrameParticipantFrameDamageStats {
#[ serde(rename = " magicDamageDone " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage_done : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicDamageDoneToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage_done_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " magicDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamageDone " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage_done : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamageDoneToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage_done_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageDone " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_done : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageDoneToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_done_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub total_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamageDone " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage_done : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamageDoneToChampions " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage_done_to_champions : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamageTaken " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage_taken : i32 ,
2021-05-31 05:27:21 +00:00
}
2021-09-03 04:22:16 +00:00
/// MatchTimelinePosition data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
2021-09-03 04:22:16 +00:00
pub struct MatchTimelinePosition {
2021-05-31 05:27:21 +00:00
#[ serde(rename = " x " ) ]
2021-07-23 22:31:02 +00:00
pub x : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " y " ) ]
2021-07-23 22:31:02 +00:00
pub y : i32 ,
2021-05-31 05:27:21 +00:00
}
/// MatchTimelineInfoFrameParticipantFrame data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrameParticipantFrame {
#[ serde(rename = " championStats " ) ]
pub champion_stats : MatchTimelineInfoFrameParticipantFrameChampionStats ,
#[ serde(rename = " currentGold " ) ]
2021-07-23 22:31:02 +00:00
pub current_gold : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " damageStats " ) ]
pub damage_stats : MatchTimelineInfoFrameParticipantFrameDamageStats ,
#[ serde(rename = " goldPerSecond " ) ]
2021-07-23 22:31:02 +00:00
pub gold_per_second : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " jungleMinionsKilled " ) ]
2021-07-23 22:31:02 +00:00
pub jungle_minions_killed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " level " ) ]
2021-07-23 22:31:02 +00:00
pub level : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " minionsKilled " ) ]
2021-07-23 22:31:02 +00:00
pub minions_killed : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " participantId " ) ]
2021-07-23 22:31:02 +00:00
pub participant_id : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " position " ) ]
2021-09-03 04:22:16 +00:00
pub position : MatchTimelinePosition ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " timeEnemySpentControlled " ) ]
2021-07-23 22:31:02 +00:00
pub time_enemy_spent_controlled : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " totalGold " ) ]
2021-07-23 22:31:02 +00:00
pub total_gold : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " xp " ) ]
2021-07-23 22:31:02 +00:00
pub xp : i32 ,
2021-05-31 05:27:21 +00:00
}
/// MatchTimelineInfoFrameParticipantFrames data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrameParticipantFrames {
#[ serde(rename = " 1 " ) ]
pub x1 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 2 " ) ]
pub x2 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 3 " ) ]
pub x3 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 4 " ) ]
pub x4 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 5 " ) ]
pub x5 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 6 " ) ]
pub x6 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 7 " ) ]
pub x7 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 8 " ) ]
pub x8 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 9 " ) ]
pub x9 : MatchTimelineInfoFrameParticipantFrame ,
#[ serde(rename = " 10 " ) ]
pub x10 : MatchTimelineInfoFrameParticipantFrame ,
}
/// MatchTimelineInfoFrame data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrame {
#[ serde(rename = " events " ) ]
pub events : std ::vec ::Vec < MatchTimelineInfoFrameEvent > ,
#[ serde(rename = " participantFrames " ) ]
pub participant_frames : MatchTimelineInfoFrameParticipantFrames ,
#[ serde(rename = " timestamp " ) ]
2021-07-23 22:31:02 +00:00
pub timestamp : i32 ,
2021-05-31 05:27:21 +00:00
}
/// MatchTimelineInfoFrameEventVictimDamageDealt data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoFrameEventVictimDamageDealt {
#[ serde(rename = " basic " ) ]
pub basic : bool ,
#[ serde(rename = " magicDamage " ) ]
2021-07-23 22:31:02 +00:00
pub magic_damage : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " participantId " ) ]
2021-07-23 22:31:02 +00:00
pub participant_id : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " physicalDamage " ) ]
2021-07-23 22:31:02 +00:00
pub physical_damage : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " spellName " ) ]
pub spell_name : String ,
#[ serde(rename = " spellSlot " ) ]
2021-07-23 22:31:02 +00:00
pub spell_slot : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " trueDamage " ) ]
2021-07-23 22:31:02 +00:00
pub true_damage : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " type " ) ]
pub r#type : String ,
}
/// MatchTimelineInfoParticipant data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfoParticipant {
#[ serde(rename = " participantId " ) ]
2021-07-23 22:31:02 +00:00
pub participant_id : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
}
/// MatchTimelineInfo data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-31 05:27:21 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchTimelineInfo {
#[ serde(rename = " frameInterval " ) ]
2021-07-23 22:31:02 +00:00
pub frame_interval : i32 ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " frames " ) ]
pub frames : std ::vec ::Vec < MatchTimelineInfoFrame > ,
#[ serde(rename = " gameId " ) ]
2021-11-10 03:07:31 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub game_id : Option < i64 > ,
2021-05-31 05:27:21 +00:00
#[ serde(rename = " participants " ) ]
2021-11-10 03:07:31 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
pub participants : Option < std ::vec ::Vec < MatchTimelineInfoParticipant > > ,
2021-05-09 16:46:10 +00:00
}
}
2021-01-16 22:16:56 +00:00
/// Data structs used by [`SpectatorV4`](crate::endpoints::SpectatorV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod spectator_v4 {
/// CurrentGameInfo data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct CurrentGameInfo {
/// The ID of the game
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
/// The game type
#[ serde(rename = " gameType " ) ]
pub game_type : crate ::consts ::GameType ,
/// The game start time represented in epoch milliseconds
#[ serde(rename = " gameStartTime " ) ]
pub game_start_time : i64 ,
/// 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 ,
/// 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 " ) ]
pub game_mode : crate ::consts ::GameMode ,
/// Banned champion information
#[ serde(rename = " bannedChampions " ) ]
pub banned_champions : std ::vec ::Vec < BannedChampion > ,
/// The queue type (queue types are documented on the Game Constants page)
#[ serde(rename = " gameQueueConfigId " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub game_queue_config_id : Option < crate ::consts ::Queue > ,
/// The observer information
#[ serde(rename = " observers " ) ]
pub observers : Observer ,
/// The participant information
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < CurrentGameParticipant > ,
}
/// BannedChampion data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 " ) ]
pub champion_id : crate ::consts ::Champion ,
/// The ID of the team that banned the champion
#[ serde(rename = " teamId " ) ]
pub team_id : crate ::consts ::Team ,
}
/// Observer data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
/// CurrentGameParticipant data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct CurrentGameParticipant {
/// The ID of the champion played by this participant
#[ serde(rename = " championId " ) ]
pub champion_id : crate ::consts ::Champion ,
/// Perks/Runes Reforged Information
#[ serde(rename = " perks " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub perks : Option < Perks > ,
/// 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 ,
/// The team ID of this participant, indicating the participant's team
#[ serde(rename = " teamId " ) ]
pub team_id : crate ::consts ::Team ,
/// The summoner name of this participant
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
/// The encrypted summoner ID of this participant
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
/// 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 > ,
}
/// Perks data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Perks {
/// IDs of the perks/runes assigned.
#[ serde(rename = " perkIds " ) ]
pub perk_ids : std ::vec ::Vec < i64 > ,
/// Primary runes path
#[ serde(rename = " perkStyle " ) ]
pub perk_style : i64 ,
/// Secondary runes path
#[ serde(rename = " perkSubStyle " ) ]
pub perk_sub_style : i64 ,
}
/// GameCustomizationObject data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
/// FeaturedGames data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct FeaturedGames {
/// The list of featured games
#[ serde(rename = " gameList " ) ]
pub game_list : std ::vec ::Vec < FeaturedGameInfo > ,
/// The suggested interval to wait before requesting FeaturedGames again
#[ serde(rename = " clientRefreshInterval " ) ]
pub client_refresh_interval : i64 ,
}
/// FeaturedGameInfo data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct FeaturedGameInfo {
2021-09-09 21:31:39 +00:00
/// The game mode<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD, KINGPORO)
#[ serde(rename = " gameMode " ) ]
pub game_mode : crate ::consts ::GameMode ,
/// The amount of time in seconds that has passed since the game started
#[ serde(rename = " gameLength " ) ]
pub game_length : i64 ,
/// The ID of the map
#[ serde(rename = " mapId " ) ]
pub map_id : crate ::consts ::Map ,
2021-09-09 21:31:39 +00:00
/// The game type<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME)
#[ serde(rename = " gameType " ) ]
pub game_type : crate ::consts ::GameType ,
/// Banned champion information
#[ serde(rename = " bannedChampions " ) ]
pub banned_champions : std ::vec ::Vec < BannedChampion > ,
/// The ID of the game
#[ serde(rename = " gameId " ) ]
pub game_id : i64 ,
/// The observer information
#[ serde(rename = " observers " ) ]
pub observers : Observer ,
/// The queue type (queue types are documented on the Game Constants page)
#[ serde(rename = " gameQueueConfigId " ) ]
pub game_queue_config_id : crate ::consts ::Queue ,
/// 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 ,
}
/// Participant data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
/// 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 ,
/// The team ID of this participant, indicating the participant's team
#[ serde(rename = " teamId " ) ]
pub team_id : crate ::consts ::Team ,
/// The ID of the first summoner spell used by this participant
#[ serde(rename = " spell1Id " ) ]
pub spell1_id : i64 ,
}
}
/// Data structs used by [`SummonerV4`](crate::endpoints::SummonerV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod summoner_v4 {
/// Summoner data object.
/// # Description
/// represents a summoner
///
/// Note: This struct is automatically generated
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Summoner {
/// Encrypted account ID. Max length 56 characters.
#[ serde(rename = " accountId " ) ]
pub account_id : String ,
/// ID of the summoner icon associated with the summoner.
#[ serde(rename = " profileIconId " ) ]
pub profile_icon_id : i32 ,
2021-05-20 21:11:16 +00:00
/// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: profile icon change, playing the tutorial or advanced tutorial, finishing a game, summoner name change
2021-01-16 22:16:56 +00:00
#[ serde(rename = " revisionDate " ) ]
pub revision_date : i64 ,
/// Summoner name.
#[ serde(rename = " name " ) ]
pub name : String ,
/// Encrypted summoner ID. Max length 63 characters.
#[ serde(rename = " id " ) ]
pub id : String ,
/// 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 ,
}
}
/// Data structs used by [`TftLeagueV1`](crate::endpoints::TftLeagueV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod tft_league_v1 {
/// LeagueList data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueList {
#[ serde(rename = " leagueId " ) ]
pub league_id : String ,
#[ serde(rename = " entries " ) ]
pub entries : std ::vec ::Vec < LeagueItem > ,
#[ serde(rename = " tier " ) ]
pub tier : crate ::consts ::Tier ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " queue " ) ]
pub queue : crate ::consts ::QueueType ,
}
/// LeagueItem data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueItem {
#[ serde(rename = " freshBlood " ) ]
pub fresh_blood : bool ,
/// First placement.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " miniSeries " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub mini_series : Option < MiniSeries > ,
#[ serde(rename = " inactive " ) ]
pub inactive : bool ,
#[ serde(rename = " veteran " ) ]
pub veteran : bool ,
#[ serde(rename = " hotStreak " ) ]
pub hot_streak : bool ,
#[ serde(rename = " rank " ) ]
pub rank : crate ::consts ::Division ,
#[ serde(rename = " leaguePoints " ) ]
pub league_points : i32 ,
/// Second through eighth placement.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
}
/// MiniSeries data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MiniSeries {
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
#[ serde(rename = " progress " ) ]
pub progress : String ,
#[ serde(rename = " target " ) ]
pub target : i32 ,
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
}
/// LeagueEntry data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LeagueEntry {
2021-05-09 16:46:10 +00:00
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " leagueId " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub league_id : Option < String > ,
2021-01-16 22:16:56 +00:00
/// Player's encrypted summonerId.
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
#[ serde(rename = " queueType " ) ]
pub queue_type : crate ::consts ::QueueType ,
2021-09-09 21:31:39 +00:00
/// Only included for the RANKED_TFT_TURBO queueType.<br>
2021-05-09 16:46:10 +00:00
/// (Legal values: ORANGE, PURPLE, BLUE, GREEN, GRAY)
#[ serde(rename = " ratedTier " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub rated_tier : Option < String > ,
/// Only included for the RANKED_TFT_TURBO queueType.
#[ serde(rename = " ratedRating " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub rated_rating : Option < i32 > ,
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " tier " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub tier : Option < crate ::consts ::Tier > ,
/// A player's division within a tier. Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " rank " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub rank : Option < crate ::consts ::Division > ,
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " leaguePoints " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub league_points : Option < i32 > ,
2021-01-16 22:16:56 +00:00
/// First placement.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
/// Second through eighth placement.
#[ serde(rename = " losses " ) ]
pub losses : i32 ,
2021-05-09 16:46:10 +00:00
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " hotStreak " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub hot_streak : Option < bool > ,
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " veteran " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub veteran : Option < bool > ,
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " freshBlood " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub fresh_blood : Option < bool > ,
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " inactive " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-05-09 16:46:10 +00:00
pub inactive : Option < bool > ,
/// Not included for the RANKED_TFT_TURBO queueType.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " miniSeries " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub mini_series : Option < MiniSeries > ,
}
2021-05-09 16:46:10 +00:00
/// TopRatedLadderEntry data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-09 16:46:10 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TopRatedLadderEntry {
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
#[ serde(rename = " summonerName " ) ]
pub summoner_name : String ,
/// (Legal values: ORANGE, PURPLE, BLUE, GREEN, GRAY)
#[ serde(rename = " ratedTier " ) ]
pub rated_tier : String ,
#[ serde(rename = " ratedRating " ) ]
pub rated_rating : i32 ,
/// First placement.
#[ serde(rename = " wins " ) ]
pub wins : i32 ,
#[ serde(rename = " previousUpdateLadderPosition " ) ]
pub previous_update_ladder_position : i32 ,
}
2021-01-16 22:16:56 +00:00
}
/// Data structs used by [`TftMatchV1`](crate::endpoints::TftMatchV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod tft_match_v1 {
/// Match data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
/// Match metadata.
#[ serde(rename = " metadata " ) ]
pub metadata : Metadata ,
/// Match info.
#[ serde(rename = " info " ) ]
pub info : Info ,
}
/// Metadata data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 participant PUUIDs.
#[ serde(rename = " participants " ) ]
pub participants : std ::vec ::Vec < String > ,
}
/// Info data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
/// Game variation key. Game variations documented in TFT static data.
#[ serde(rename = " game_variation " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub game_variation : Option < String > ,
/// Game client version.
#[ serde(rename = " game_version " ) ]
pub game_version : String ,
#[ 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 ,
}
/// Participant data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Participant {
/// Participant's companion.
#[ serde(rename = " companion " ) ]
pub companion : Companion ,
/// 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 ,
/// Number of players the participant eliminated.
#[ serde(rename = " players_eliminated " ) ]
pub players_eliminated : i32 ,
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
/// The number of seconds before the participant was eliminated.
#[ serde(rename = " time_eliminated " ) ]
pub time_eliminated : f32 ,
/// Damage the participant dealt to other players.
#[ serde(rename = " total_damage_to_players " ) ]
pub total_damage_to_players : i32 ,
/// A complete list of traits for the participant's active units.
#[ serde(rename = " traits " ) ]
pub traits : std ::vec ::Vec < Trait > ,
/// A list of active units for the participant.
#[ serde(rename = " units " ) ]
pub units : std ::vec ::Vec < Unit > ,
}
/// Trait data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
/// Current style for this trait. (0 = No style, 1 = Bronze, 2 = Silver, 3 = Gold, 4 = Chromatic)
#[ serde(rename = " style " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub style : Option < i32 > ,
/// Current active tier for the trait.
#[ serde(rename = " tier_current " ) ]
pub tier_current : i32 ,
/// Total tiers for the trait.
#[ serde(rename = " tier_total " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub tier_total : Option < i32 > ,
}
/// Unit data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
/// If a unit is chosen as part of the Fates set mechanic, the chosen trait will be indicated by this field. Otherwise this field is excluded from the response.
#[ serde(rename = " chosen " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub chosen : Option < String > ,
/// Unit name. This field is often left blank.
#[ serde(rename = " name " ) ]
pub name : String ,
/// Unit rarity. This doesn't equate to the unit cost.
#[ serde(rename = " rarity " ) ]
pub rarity : i32 ,
/// Unit tier.
#[ serde(rename = " tier " ) ]
pub tier : i32 ,
}
/// Companion data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
}
/// Data structs used by [`TftSummonerV1`](crate::endpoints::TftSummonerV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod tft_summoner_v1 {
/// Summoner data object.
/// # Description
/// represents a summoner
///
/// Note: This struct is automatically generated
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Summoner {
/// Encrypted account ID. Max length 56 characters.
#[ serde(rename = " accountId " ) ]
pub account_id : String ,
/// ID of the summoner icon associated with the summoner.
#[ serde(rename = " profileIconId " ) ]
pub profile_icon_id : i32 ,
/// 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 ,
/// Summoner name.
#[ serde(rename = " name " ) ]
pub name : String ,
/// Encrypted summoner ID. Max length 63 characters.
#[ serde(rename = " id " ) ]
pub id : String ,
/// 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 ,
}
}
/// Data structs used by [`TournamentStubV4`](crate::endpoints::TournamentStubV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod tournament_stub_v4 {
/// TournamentCodeParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCodeParameters {
/// 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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub metadata : Option < String > ,
/// The team size of the game. Valid values are 1-5.
#[ serde(rename = " teamSize " ) ]
pub team_size : i32 ,
2021-09-09 21:31:39 +00:00
/// The pick type of the game.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
2021-09-09 21:31:39 +00:00
/// The map type of the game.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[ serde(rename = " mapType " ) ]
pub map_type : String ,
2021-09-09 21:31:39 +00:00
/// The spectator type of the game.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: NONE, LOBBYONLY, ALL)
#[ serde(rename = " spectatorType " ) ]
pub spectator_type : String ,
}
/// LobbyEventWrapper data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEventWrapper {
#[ serde(rename = " eventList " ) ]
pub event_list : std ::vec ::Vec < LobbyEvent > ,
}
/// LobbyEvent data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEvent {
/// The summonerId that triggered the event (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
/// The type of event that was triggered
#[ serde(rename = " eventType " ) ]
pub event_type : String ,
/// Timestamp from the event
#[ serde(rename = " timestamp " ) ]
pub timestamp : String ,
}
/// ProviderRegistrationParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ProviderRegistrationParameters {
2021-09-09 21:31:39 +00:00
/// The region in which the provider will be running tournaments.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[ serde(rename = " region " ) ]
pub region : String ,
/// 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 ,
}
/// TournamentRegistrationParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub name : Option < String > ,
}
}
/// Data structs used by [`TournamentV4`](crate::endpoints::TournamentV4).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod tournament_v4 {
/// TournamentCodeParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCodeParameters {
/// 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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub metadata : Option < String > ,
/// The team size of the game. Valid values are 1-5.
#[ serde(rename = " teamSize " ) ]
pub team_size : i32 ,
2021-09-09 21:31:39 +00:00
/// The pick type of the game.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
2021-09-09 21:31:39 +00:00
/// The map type of the game.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[ serde(rename = " mapType " ) ]
pub map_type : String ,
2021-09-09 21:31:39 +00:00
/// The spectator type of the game.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: NONE, LOBBYONLY, ALL)
#[ serde(rename = " spectatorType " ) ]
pub spectator_type : String ,
}
/// TournamentCode data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
/// 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 ,
/// The team size for the tournament code game.
#[ serde(rename = " teamSize " ) ]
pub team_size : i32 ,
/// The provider's ID.
#[ serde(rename = " providerId " ) ]
pub provider_id : i32 ,
/// 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 ,
2021-09-09 21:31:39 +00:00
/// The tournament code's region.<br>
2021-01-16 22:16:56 +00:00
/// (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 > ,
}
/// TournamentCodeUpdateParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct TournamentCodeUpdateParameters {
/// 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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub allowed_summoner_ids : Option < std ::vec ::Vec < String > > ,
2021-09-09 21:31:39 +00:00
/// The pick type<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[ serde(rename = " pickType " ) ]
pub pick_type : String ,
2021-09-09 21:31:39 +00:00
/// The map type<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[ serde(rename = " mapType " ) ]
pub map_type : String ,
2021-09-09 21:31:39 +00:00
/// The spectator type<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: NONE, LOBBYONLY, ALL)
#[ serde(rename = " spectatorType " ) ]
pub spectator_type : String ,
}
/// LobbyEventWrapper data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct LobbyEventWrapper {
#[ serde(rename = " eventList " ) ]
pub event_list : std ::vec ::Vec < LobbyEvent > ,
}
/// LobbyEvent data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
/// The summonerId that triggered the event (Encrypted)
#[ serde(rename = " summonerId " ) ]
pub summoner_id : String ,
}
/// ProviderRegistrationParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct ProviderRegistrationParameters {
2021-09-09 21:31:39 +00:00
/// The region in which the provider will be running tournaments.<br>
2021-01-16 22:16:56 +00:00
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[ serde(rename = " region " ) ]
pub region : String ,
/// 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 ,
}
/// TournamentRegistrationParameters data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub name : Option < String > ,
}
}
/// 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 > ,
#[ serde(rename = " acts " ) ]
pub acts : std ::vec ::Vec < Act > ,
}
/// ContentItem data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub localized_names : Option < LocalizedNames > ,
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " assetName " ) ]
pub asset_name : String ,
/// This field is only included for maps and game modes. These values are used in the match response.
#[ serde(rename = " assetPath " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub asset_path : Option < String > ,
}
/// LocalizedNames data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
/// Act data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Act {
#[ serde(rename = " name " ) ]
pub name : String ,
/// This field is excluded from the response when a locale is set
#[ serde(rename = " localizedNames " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-01-16 22:16:56 +00:00
pub localized_names : Option < LocalizedNames > ,
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " isActive " ) ]
pub is_active : bool ,
}
}
/// 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Match {
#[ serde(rename = " matchInfo " ) ]
pub match_info : MatchInfo ,
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
2021-05-09 16:46:10 +00:00
#[ serde(rename = " coaches " ) ]
pub coaches : std ::vec ::Vec < Coach > ,
2021-01-16 22:16:56 +00:00
#[ serde(rename = " teams " ) ]
pub teams : std ::vec ::Vec < Team > ,
#[ serde(rename = " roundResults " ) ]
pub round_results : std ::vec ::Vec < RoundResult > ,
}
/// MatchInfo data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
2021-04-02 07:07:38 +00:00
#[ serde(rename = " gameName " ) ]
pub game_name : String ,
#[ serde(rename = " tagLine " ) ]
pub tag_line : String ,
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlayerStats {
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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 ,
}
2021-05-09 16:46:10 +00:00
/// Coach data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-05-09 16:46:10 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Coach {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " teamId " ) ]
pub team_id : String ,
}
2021-01-16 22:16:56 +00:00
/// Team data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Team {
/// This is an arbitrary string. Red and Blue in bomb modes. The puuid of the player in deathmatch.
#[ 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 ,
/// Team points scored. Number of kills in deathmatch.
#[ serde(rename = " numPoints " ) ]
pub num_points : i32 ,
}
/// RoundResult data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Location {
#[ serde(rename = " x " ) ]
pub x : i32 ,
#[ serde(rename = " y " ) ]
pub y : i32 ,
}
/// PlayerRoundStats data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlayerRoundStats {
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Kill {
#[ serde(rename = " timeSinceGameStartMillis " ) ]
pub time_since_game_start_millis : i32 ,
#[ serde(rename = " timeSinceRoundStartMillis " ) ]
pub time_since_round_start_millis : i32 ,
/// 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ 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.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Matchlist {
#[ serde(rename = " puuid " ) ]
pub puuid : String ,
#[ serde(rename = " history " ) ]
pub history : std ::vec ::Vec < MatchlistEntry > ,
}
/// MatchlistEntry data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct MatchlistEntry {
#[ serde(rename = " matchId " ) ]
pub match_id : String ,
#[ serde(rename = " gameStartTimeMillis " ) ]
pub game_start_time_millis : i64 ,
#[ serde(rename = " teamId " ) ]
pub team_id : String ,
}
/// RecentMatches data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct RecentMatches {
#[ serde(rename = " currentTime " ) ]
pub current_time : i64 ,
/// A list of recent match ids.
#[ serde(rename = " matchIds " ) ]
pub match_ids : std ::vec ::Vec < String > ,
}
}
/// Data structs used by [`ValRankedV1`](crate::endpoints::ValRankedV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod val_ranked_v1 {
/// Leaderboard data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Leaderboard {
/// The shard for the given leaderboard.
#[ serde(rename = " shard " ) ]
pub shard : String ,
/// The act id for the given leaderboard. Act ids can be found using the val-content API.
#[ serde(rename = " actId " ) ]
pub act_id : String ,
/// The total number of players in the leaderboard.
#[ serde(rename = " totalPlayers " ) ]
pub total_players : i64 ,
#[ serde(rename = " players " ) ]
pub players : std ::vec ::Vec < Player > ,
}
/// Player data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Player {
2021-04-02 07:07:38 +00:00
/// This field may be omitted if the player has been anonymized.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " puuid " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-04-02 07:07:38 +00:00
pub puuid : Option < String > ,
/// This field may be omitted if the player has been anonymized.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " gameName " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-04-02 07:07:38 +00:00
pub game_name : Option < String > ,
/// This field may be omitted if the player has been anonymized.
2021-01-16 22:16:56 +00:00
#[ serde(rename = " tagLine " ) ]
2021-05-22 04:59:51 +00:00
#[ serde(skip_serializing_if = " Option::is_none " ) ]
2021-04-02 07:07:38 +00:00
pub tag_line : Option < String > ,
2021-01-16 22:16:56 +00:00
#[ serde(rename = " leaderboardRank " ) ]
pub leaderboard_rank : i64 ,
#[ serde(rename = " rankedRating " ) ]
pub ranked_rating : i64 ,
#[ serde(rename = " numberOfWins " ) ]
pub number_of_wins : i64 ,
}
}
/// Data structs used by [`ValStatusV1`](crate::endpoints::ValStatusV1).
///
/// Note: this module is automatically generated.
#[ allow(dead_code) ]
pub mod val_status_v1 {
/// PlatformData data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct PlatformData {
#[ serde(rename = " id " ) ]
pub id : String ,
#[ serde(rename = " name " ) ]
pub name : String ,
#[ serde(rename = " locales " ) ]
pub locales : std ::vec ::Vec < String > ,
#[ serde(rename = " maintenances " ) ]
pub maintenances : std ::vec ::Vec < Status > ,
#[ serde(rename = " incidents " ) ]
pub incidents : std ::vec ::Vec < Status > ,
}
/// Status data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Status {
#[ serde(rename = " id " ) ]
pub id : i32 ,
/// (Legal values: scheduled, in_progress, complete)
#[ serde(rename = " maintenance_status " ) ]
pub maintenance_status : String ,
/// (Legal values: info, warning, critical)
#[ serde(rename = " incident_severity " ) ]
pub incident_severity : String ,
#[ serde(rename = " titles " ) ]
pub titles : std ::vec ::Vec < Content > ,
#[ serde(rename = " updates " ) ]
pub updates : std ::vec ::Vec < Update > ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " archive_at " ) ]
pub archive_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
/// (Legal values: windows, macos, android, ios, ps4, xbone, switch)
#[ serde(rename = " platforms " ) ]
pub platforms : std ::vec ::Vec < String > ,
}
/// Content data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Content {
#[ serde(rename = " locale " ) ]
pub locale : String ,
#[ serde(rename = " content " ) ]
pub content : String ,
}
/// Update data object.
2021-10-30 05:21:02 +00:00
#[ derive(Clone, Debug) ]
2021-01-16 22:16:56 +00:00
#[ derive(serde::Serialize, serde::Deserialize) ]
pub struct Update {
#[ serde(rename = " id " ) ]
pub id : i32 ,
#[ serde(rename = " author " ) ]
pub author : String ,
#[ serde(rename = " publish " ) ]
pub publish : bool ,
/// (Legal values: riotclient, riotstatus, game)
#[ serde(rename = " publish_locations " ) ]
pub publish_locations : std ::vec ::Vec < String > ,
#[ serde(rename = " translations " ) ]
pub translations : std ::vec ::Vec < Content > ,
#[ serde(rename = " created_at " ) ]
pub created_at : String ,
#[ serde(rename = " updated_at " ) ]
pub updated_at : String ,
}
}