Regen, release 1.13.4

v/1.x.x
Mingwei Samuel 2021-09-02 21:18:44 -07:00
parent 80eeb184a0
commit b30342ac47
5 changed files with 325 additions and 297 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "riven" name = "riven"
version = "1.13.3" version = "1.13.4"
authors = ["Mingwei Samuel <mingwei.samuel@gmail.com>"] authors = ["Mingwei Samuel <mingwei.samuel@gmail.com>"]
repository = "https://github.com/MingweiSamuel/Riven" repository = "https://github.com/MingweiSamuel/Riven"
description = "Riot Games API Library" description = "Riot Games API Library"

View File

@ -58,6 +58,8 @@ pub enum GameMode {
TUTORIAL_MODULE_2, TUTORIAL_MODULE_2,
/// Tutorial: Shop for Gear. /// Tutorial: Shop for Gear.
TUTORIAL_MODULE_3, TUTORIAL_MODULE_3,
/// Ultimate Spellbook games.
ULTBOOK,
/// URF games /// URF games
URF, URF,
} }

View File

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 8fec9617c247f0ee5c96feecc8526fdc9dca0369 // Version 12e3bc69894adde9001edb3c64126cd90d4531bd
//! Automatically generated endpoint handles. //! Automatically generated endpoint handles.
@ -923,6 +923,8 @@ impl<'a> MatchV5<'a> {
/// # Parameters /// # Parameters
/// * `region` - Region to query. /// * `region` - Region to query.
/// * `puuid` /// * `puuid`
/// * `startTime` (optional) - Epoch timestamp in seconds.
/// * `endTime` (optional) - Epoch timestamp in seconds.
/// * `queue` (optional) - Filter the list of match ids by a specific queue id. This filter is mutually inclusive of the type filter meaning any match ids returned must match both the queue and type filters. /// * `queue` (optional) - Filter the list of match ids by a specific queue id. This filter is mutually inclusive of the type filter meaning any match ids returned must match both the queue and type filters.
/// * `type` (optional) - Filter the list of match ids by the type of match. This filter is mutually inclusive of the queue filter meaning any match ids returned must match both the queue and type filters. /// * `type` (optional) - Filter the list of match ids by the type of match. This filter is mutually inclusive of the queue filter meaning any match ids returned must match both the queue and type filters.
/// * `start` (optional) - Defaults to 0. Start index. /// * `start` (optional) - Defaults to 0. Start index.
@ -931,12 +933,14 @@ impl<'a> MatchV5<'a> {
/// <a href="https://developer.riotgames.com/api-methods/#match-v5/GET_getMatchIdsByPUUID" target="_blank">`match-v5.getMatchIdsByPUUID`</a> /// <a href="https://developer.riotgames.com/api-methods/#match-v5/GET_getMatchIdsByPUUID" target="_blank">`match-v5.getMatchIdsByPUUID`</a>
/// ///
/// Note: this method is automatically generated. /// Note: this method is automatically generated.
pub fn get_match_ids_by_puuid(&self, region: Region, puuid: &str, count: Option<i32>, queue: Option<i32>, start: Option<i32>, r#type: Option<&str>) pub fn get_match_ids_by_puuid(&self, region: Region, puuid: &str, count: Option<i32>, end_time: Option<i64>, queue: Option<i32>, start_time: Option<i64>, start: Option<i32>, r#type: Option<&str>)
-> impl Future<Output = Result<Vec<String>>> + 'a -> impl Future<Output = Result<Vec<String>>> + 'a
{ {
let mut query_params = Serializer::new(String::new()); let mut query_params = Serializer::new(String::new());
if let Some(count) = count { query_params.append_pair("count", &*count.to_string()); }; if let Some(count) = count { query_params.append_pair("count", &*count.to_string()); };
if let Some(end_time) = end_time { query_params.append_pair("endTime", &*end_time.to_string()); };
if let Some(queue) = queue { query_params.append_pair("queue", &*queue.to_string()); }; if let Some(queue) = queue { query_params.append_pair("queue", &*queue.to_string()); };
if let Some(start_time) = start_time { query_params.append_pair("startTime", &*start_time.to_string()); };
if let Some(start) = start { query_params.append_pair("start", &*start.to_string()); }; if let Some(start) = start { query_params.append_pair("start", &*start.to_string()); };
if let Some(r#type) = r#type { query_params.append_pair("type", r#type); }; if let Some(r#type) = r#type { query_params.append_pair("type", r#type); };
let query_string = query_params.finish(); let query_string = query_params.finish();

View File

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 8fec9617c247f0ee5c96feecc8526fdc9dca0369 // Version 12e3bc69894adde9001edb3c64126cd90d4531bd
//! Metadata about the Riot API and Riven. //! Metadata about the Riot API and Riven.
//! //!

View File

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 8fec9617c247f0ee5c96feecc8526fdc9dca0369 // Version 12e3bc69894adde9001edb3c64126cd90d4531bd
//! Data transfer structs. //! Data transfer structs.
//! //!
@ -732,10 +732,10 @@ pub mod match_v4 {
/// Participant identity information. Participant identity information is purposefully excluded for custom games. /// Participant identity information. Participant identity information is purposefully excluded for custom games.
#[serde(rename = "participantIdentities")] #[serde(rename = "participantIdentities")]
pub participant_identities: std::vec::Vec<ParticipantIdentity>, pub participant_identities: std::vec::Vec<ParticipantIdentity>,
/// Please refer to the Game Constants documentation. /// Refer to the Game Constants documentation.
#[serde(rename = "queueId")] #[serde(rename = "queueId")]
pub queue_id: crate::consts::Queue, pub queue_id: crate::consts::Queue,
/// Please refer to the Game Constants documentation. /// Refer to the Game Constants documentation.
#[serde(rename = "gameType")] #[serde(rename = "gameType")]
pub game_type: crate::consts::GameType, pub game_type: crate::consts::GameType,
/// Match duration in seconds. /// Match duration in seconds.
@ -750,16 +750,16 @@ pub mod match_v4 {
/// Designates the timestamp when champion select ended and the loading screen appeared, NOT when the game timer was at 0:00. /// Designates the timestamp when champion select ended and the loading screen appeared, NOT when the game timer was at 0:00.
#[serde(rename = "gameCreation")] #[serde(rename = "gameCreation")]
pub game_creation: i64, pub game_creation: i64,
/// Please refer to the Game Constants documentation. /// Refer to the Game Constants documentation.
#[serde(rename = "seasonId")] #[serde(rename = "seasonId")]
pub season_id: crate::consts::Season, pub season_id: crate::consts::Season,
/// The major.minor version typically indicates the patch the match was played on. /// The major.minor version typically indicates the patch the match was played on.
#[serde(rename = "gameVersion")] #[serde(rename = "gameVersion")]
pub game_version: String, pub game_version: String,
/// Please refer to the Game Constants documentation. /// Refer to the Game Constants documentation.
#[serde(rename = "mapId")] #[serde(rename = "mapId")]
pub map_id: crate::consts::Map, pub map_id: crate::consts::Map,
/// Please refer to the Game Constants documentation. /// Refer to the Game Constants documentation.
#[serde(rename = "gameMode")] #[serde(rename = "gameMode")]
pub game_mode: crate::consts::GameMode, pub game_mode: crate::consts::GameMode,
/// Participant information. /// Participant information.
@ -1363,113 +1363,107 @@ pub mod match_v5 {
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct Match { pub struct Match {
/// Match metadata.
#[serde(rename = "metadata")] #[serde(rename = "metadata")]
pub metadata: MatchMetadata, pub metadata: Metadata,
/// Match info.
#[serde(rename = "info")] #[serde(rename = "info")]
pub info: MatchInfo, pub info: Info,
} }
/// MatchTimeline data object. /// Metadata data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchTimeline { pub struct Metadata {
#[serde(rename = "metadata")] /// Match data version.
pub metadata: MatchMetadata, #[serde(rename = "data_version")]
#[serde(rename = "info")]
pub info: MatchTimelineInfo,
}
/// MatchMetadata data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchMetadata {
#[serde(rename = "dataVersion")]
pub data_version: String, pub data_version: String,
#[serde(rename = "matchId")] /// Match id.
#[serde(rename = "match_id")]
pub match_id: String, pub match_id: String,
/// A list of participant PUUIDs.
#[serde(rename = "participants")] #[serde(rename = "participants")]
pub participants: std::vec::Vec<String>, pub participants: std::vec::Vec<String>,
} }
/// MatchInfoParticipantPerksStatPerks data object. /// Info data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoParticipantPerksStatPerks { pub struct Info {
#[serde(rename = "defense")] /// Unix timestamp for when the game is created (i.e., the loading screen).
pub defense: i64, #[serde(rename = "gameCreation")]
#[serde(rename = "flex")] pub game_creation: i64,
pub flex: i64, /// Game length in milliseconds.
#[serde(rename = "offense")] #[serde(rename = "gameDuration")]
pub offense: i64, pub game_duration: i64,
#[serde(rename = "gameId")]
pub game_id: i64,
/// Refer to the Game Constants documentation.
#[serde(rename = "gameMode")]
pub game_mode: String,
#[serde(rename = "gameName")]
pub game_name: String,
/// Unix timestamp for when match actually starts.
#[serde(rename = "gameStartTimestamp")]
pub game_start_timestamp: i64,
#[serde(rename = "gameType")]
pub game_type: String,
/// 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")]
pub map_id: i32,
#[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")]
pub queue_id: i32,
#[serde(rename = "teams")]
pub teams: std::vec::Vec<Team>,
/// Tournament code used to generate the match.
#[serde(rename = "tournamentCode")]
pub tournament_code: Option<String>,
} }
/// MatchInfoParticipantPerksStyleSelection data object. /// Participant data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoParticipantPerksStyleSelection { pub struct Participant {
#[serde(rename = "perk")]
pub perk: i64,
#[serde(rename = "var1")]
pub var1: i64,
#[serde(rename = "var2")]
pub var2: i64,
#[serde(rename = "var3")]
pub var3: i64,
}
/// MatchInfoParticipantPerksStyle data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoParticipantPerksStyle {
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "selections")]
pub selections: std::vec::Vec<MatchInfoParticipantPerksStyleSelection>,
#[serde(rename = "style")]
pub style: i64,
}
/// MatchInfoParticipantPerks data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoParticipantPerks {
#[serde(rename = "statPerks")]
pub stat_perks: MatchInfoParticipantPerksStatPerks,
#[serde(rename = "styles")]
pub styles: std::vec::Vec<MatchInfoParticipantPerksStyle>,
}
/// MatchInfoParticipant data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoParticipant {
#[serde(rename = "assists")] #[serde(rename = "assists")]
pub assists: i64, pub assists: i32,
#[serde(rename = "baronKills")] #[serde(rename = "baronKills")]
pub baron_kills: i64, pub baron_kills: i32,
#[serde(rename = "bountyLevel")] #[serde(rename = "bountyLevel")]
pub bounty_level: i64, pub bounty_level: i32,
#[serde(rename = "champExperience")] #[serde(rename = "champExperience")]
pub champ_experience: i64, pub champ_experience: i32,
#[serde(rename = "champLevel")] #[serde(rename = "champLevel")]
pub champ_level: i64, pub champ_level: i32,
#[serde(rename = "championId")] #[serde(rename = "championId")]
pub champion_id: crate::consts::Champion, pub champion_id: i32,
#[serde(rename = "championName")] #[serde(rename = "championName")]
pub champion_name: String, pub champion_name: String,
#[serde(rename = "championTransform")] #[serde(rename = "championTransform")]
pub champion_transform: i64, pub champion_transform: i32,
#[serde(rename = "consumablesPurchased")] #[serde(rename = "consumablesPurchased")]
pub consumables_purchased: i64, pub consumables_purchased: i32,
#[serde(rename = "damageDealtToBuildings")] #[serde(rename = "damageDealtToBuildings")]
pub damage_dealt_to_buildings: i64, pub damage_dealt_to_buildings: i32,
#[serde(rename = "damageDealtToObjectives")] #[serde(rename = "damageDealtToObjectives")]
pub damage_dealt_to_objectives: i64, pub damage_dealt_to_objectives: i32,
#[serde(rename = "damageDealtToTurrets")] #[serde(rename = "damageDealtToTurrets")]
pub damage_dealt_to_turrets: i64, pub damage_dealt_to_turrets: i32,
#[serde(rename = "damageSelfMitigated")] #[serde(rename = "damageSelfMitigated")]
pub damage_self_mitigated: i64, pub damage_self_mitigated: i32,
#[serde(rename = "deaths")] #[serde(rename = "deaths")]
pub deaths: i64, pub deaths: i32,
#[serde(rename = "detectorWardsPlaced")] #[serde(rename = "detectorWardsPlaced")]
pub detector_wards_placed: i64, pub detector_wards_placed: i32,
#[serde(rename = "doubleKills")] #[serde(rename = "doubleKills")]
pub double_kills: i64, pub double_kills: i32,
#[serde(rename = "dragonKills")] #[serde(rename = "dragonKills")]
pub dragon_kills: i64, pub dragon_kills: i32,
#[serde(rename = "firstBloodAssist")] #[serde(rename = "firstBloodAssist")]
pub first_blood_assist: bool, pub first_blood_assist: bool,
#[serde(rename = "firstBloodKill")] #[serde(rename = "firstBloodKill")]
@ -1483,79 +1477,83 @@ pub mod match_v5 {
#[serde(rename = "gameEndedInSurrender")] #[serde(rename = "gameEndedInSurrender")]
pub game_ended_in_surrender: bool, pub game_ended_in_surrender: bool,
#[serde(rename = "goldEarned")] #[serde(rename = "goldEarned")]
pub gold_earned: i64, pub gold_earned: i32,
#[serde(rename = "goldSpent")] #[serde(rename = "goldSpent")]
pub gold_spent: i64, pub gold_spent: i32,
#[serde(rename = "individualPosition")] #[serde(rename = "individualPosition")]
pub individual_position: String, pub individual_position: String,
#[serde(rename = "inhibitorKills")] #[serde(rename = "inhibitorKills")]
pub inhibitor_kills: i64, pub inhibitor_kills: i32,
#[serde(rename = "inhibitorTakedowns")]
pub inhibitor_takedowns: Option<i32>,
#[serde(rename = "inhibitorsLost")] #[serde(rename = "inhibitorsLost")]
pub inhibitors_lost: i64, pub inhibitors_lost: i32,
#[serde(rename = "item0")] #[serde(rename = "item0")]
pub item0: i64, pub item0: i32,
#[serde(rename = "item1")] #[serde(rename = "item1")]
pub item1: i64, pub item1: i32,
#[serde(rename = "item2")] #[serde(rename = "item2")]
pub item2: i64, pub item2: i32,
#[serde(rename = "item3")] #[serde(rename = "item3")]
pub item3: i64, pub item3: i32,
#[serde(rename = "item4")] #[serde(rename = "item4")]
pub item4: i64, pub item4: i32,
#[serde(rename = "item5")] #[serde(rename = "item5")]
pub item5: i64, pub item5: i32,
#[serde(rename = "item6")] #[serde(rename = "item6")]
pub item6: i64, pub item6: i32,
#[serde(rename = "itemsPurchased")] #[serde(rename = "itemsPurchased")]
pub items_purchased: i64, pub items_purchased: i32,
#[serde(rename = "killingSprees")] #[serde(rename = "killingSprees")]
pub killing_sprees: i64, pub killing_sprees: i32,
#[serde(rename = "kills")] #[serde(rename = "kills")]
pub kills: i64, pub kills: i32,
#[serde(rename = "lane")] #[serde(rename = "lane")]
pub lane: String, pub lane: String,
#[serde(rename = "largestCriticalStrike")] #[serde(rename = "largestCriticalStrike")]
pub largest_critical_strike: i64, pub largest_critical_strike: i32,
#[serde(rename = "largestKillingSpree")] #[serde(rename = "largestKillingSpree")]
pub largest_killing_spree: i64, pub largest_killing_spree: i32,
#[serde(rename = "largestMultiKill")] #[serde(rename = "largestMultiKill")]
pub largest_multi_kill: i64, pub largest_multi_kill: i32,
#[serde(rename = "longestTimeSpentLiving")] #[serde(rename = "longestTimeSpentLiving")]
pub longest_time_spent_living: i64, pub longest_time_spent_living: i32,
#[serde(rename = "magicDamageDealt")] #[serde(rename = "magicDamageDealt")]
pub magic_damage_dealt: i64, pub magic_damage_dealt: i32,
#[serde(rename = "magicDamageDealtToChampions")] #[serde(rename = "magicDamageDealtToChampions")]
pub magic_damage_dealt_to_champions: i64, pub magic_damage_dealt_to_champions: i32,
#[serde(rename = "magicDamageTaken")] #[serde(rename = "magicDamageTaken")]
pub magic_damage_taken: i64, pub magic_damage_taken: i32,
#[serde(rename = "neutralMinionsKilled")] #[serde(rename = "neutralMinionsKilled")]
pub neutral_minions_killed: i64, pub neutral_minions_killed: i32,
#[serde(rename = "nexusKills")] #[serde(rename = "nexusKills")]
pub nexus_kills: i64, pub nexus_kills: i32,
#[serde(rename = "nexusTakedowns")]
pub nexus_takedowns: Option<i32>,
#[serde(rename = "nexusLost")] #[serde(rename = "nexusLost")]
pub nexus_lost: i64, pub nexus_lost: i32,
#[serde(rename = "objectivesStolen")] #[serde(rename = "objectivesStolen")]
pub objectives_stolen: i64, pub objectives_stolen: i32,
#[serde(rename = "objectivesStolenAssists")] #[serde(rename = "objectivesStolenAssists")]
pub objectives_stolen_assists: i64, pub objectives_stolen_assists: i32,
#[serde(rename = "participantId")] #[serde(rename = "participantId")]
pub participant_id: i64, pub participant_id: i32,
#[serde(rename = "pentaKills")] #[serde(rename = "pentaKills")]
pub penta_kills: i64, pub penta_kills: i32,
#[serde(rename = "perks")] #[serde(rename = "perks")]
pub perks: MatchInfoParticipantPerks, pub perks: Perks,
#[serde(rename = "physicalDamageDealt")] #[serde(rename = "physicalDamageDealt")]
pub physical_damage_dealt: i64, pub physical_damage_dealt: i32,
#[serde(rename = "physicalDamageDealtToChampions")] #[serde(rename = "physicalDamageDealtToChampions")]
pub physical_damage_dealt_to_champions: i64, pub physical_damage_dealt_to_champions: i32,
#[serde(rename = "physicalDamageTaken")] #[serde(rename = "physicalDamageTaken")]
pub physical_damage_taken: i64, pub physical_damage_taken: i32,
#[serde(rename = "profileIcon")] #[serde(rename = "profileIcon")]
pub profile_icon: i64, pub profile_icon: i32,
#[serde(rename = "puuid")] #[serde(rename = "puuid")]
pub puuid: String, pub puuid: String,
#[serde(rename = "quadraKills")] #[serde(rename = "quadraKills")]
pub quadra_kills: i64, pub quadra_kills: i32,
#[serde(rename = "riotIdName")] #[serde(rename = "riotIdName")]
pub riot_id_name: String, pub riot_id_name: String,
#[serde(rename = "riotIdTagline")] #[serde(rename = "riotIdTagline")]
@ -1563,164 +1561,186 @@ pub mod match_v5 {
#[serde(rename = "role")] #[serde(rename = "role")]
pub role: String, pub role: String,
#[serde(rename = "sightWardsBoughtInGame")] #[serde(rename = "sightWardsBoughtInGame")]
pub sight_wards_bought_in_game: i64, pub sight_wards_bought_in_game: i32,
#[serde(rename = "spell1Casts")] #[serde(rename = "spell1Casts")]
pub spell1_casts: i64, pub spell1_casts: i32,
#[serde(rename = "spell2Casts")] #[serde(rename = "spell2Casts")]
pub spell2_casts: i64, pub spell2_casts: i32,
#[serde(rename = "spell3Casts")] #[serde(rename = "spell3Casts")]
pub spell3_casts: i64, pub spell3_casts: i32,
#[serde(rename = "spell4Casts")] #[serde(rename = "spell4Casts")]
pub spell4_casts: i64, pub spell4_casts: i32,
#[serde(rename = "summoner1Casts")] #[serde(rename = "summoner1Casts")]
pub summoner1_casts: i64, pub summoner1_casts: i32,
#[serde(rename = "summoner1Id")] #[serde(rename = "summoner1Id")]
pub summoner1_id: i64, pub summoner1_id: i32,
#[serde(rename = "summoner2Casts")] #[serde(rename = "summoner2Casts")]
pub summoner2_casts: i64, pub summoner2_casts: i32,
#[serde(rename = "summoner2Id")] #[serde(rename = "summoner2Id")]
pub summoner2_id: i64, pub summoner2_id: i32,
#[serde(rename = "summonerId")] #[serde(rename = "summonerId")]
pub summoner_id: String, pub summoner_id: String,
#[serde(rename = "summonerLevel")] #[serde(rename = "summonerLevel")]
pub summoner_level: i64, pub summoner_level: i32,
#[serde(rename = "summonerName")] #[serde(rename = "summonerName")]
pub summoner_name: String, pub summoner_name: String,
#[serde(rename = "teamEarlySurrendered")] #[serde(rename = "teamEarlySurrendered")]
pub team_early_surrendered: bool, pub team_early_surrendered: bool,
#[serde(rename = "teamId")] #[serde(rename = "teamId")]
pub team_id: crate::consts::Team, pub team_id: i32,
#[serde(rename = "teamPosition")] #[serde(rename = "teamPosition")]
pub team_position: String, pub team_position: String,
#[serde(rename = "timeCCingOthers")] #[serde(rename = "timeCCingOthers")]
pub time_c_cing_others: i64, pub time_c_cing_others: i32,
#[serde(rename = "timePlayed")] #[serde(rename = "timePlayed")]
pub time_played: i64, pub time_played: i32,
#[serde(rename = "totalDamageDealt")] #[serde(rename = "totalDamageDealt")]
pub total_damage_dealt: i64, pub total_damage_dealt: i32,
#[serde(rename = "totalDamageDealtToChampions")] #[serde(rename = "totalDamageDealtToChampions")]
pub total_damage_dealt_to_champions: i64, pub total_damage_dealt_to_champions: i32,
#[serde(rename = "totalDamageShieldedOnTeammates")] #[serde(rename = "totalDamageShieldedOnTeammates")]
pub total_damage_shielded_on_teammates: i64, pub total_damage_shielded_on_teammates: i32,
#[serde(rename = "totalDamageTaken")] #[serde(rename = "totalDamageTaken")]
pub total_damage_taken: i64, pub total_damage_taken: i32,
#[serde(rename = "totalHeal")] #[serde(rename = "totalHeal")]
pub total_heal: i64, pub total_heal: i32,
#[serde(rename = "totalHealsOnTeammates")] #[serde(rename = "totalHealsOnTeammates")]
pub total_heals_on_teammates: i64, pub total_heals_on_teammates: i32,
#[serde(rename = "totalMinionsKilled")] #[serde(rename = "totalMinionsKilled")]
pub total_minions_killed: i64, pub total_minions_killed: i32,
#[serde(rename = "totalTimeCCDealt")] #[serde(rename = "totalTimeCCDealt")]
pub total_time_cc_dealt: i64, pub total_time_cc_dealt: i32,
#[serde(rename = "totalTimeSpentDead")] #[serde(rename = "totalTimeSpentDead")]
pub total_time_spent_dead: i64, pub total_time_spent_dead: i32,
#[serde(rename = "totalUnitsHealed")] #[serde(rename = "totalUnitsHealed")]
pub total_units_healed: i64, pub total_units_healed: i32,
#[serde(rename = "tripleKills")] #[serde(rename = "tripleKills")]
pub triple_kills: i64, pub triple_kills: i32,
#[serde(rename = "trueDamageDealt")] #[serde(rename = "trueDamageDealt")]
pub true_damage_dealt: i64, pub true_damage_dealt: i32,
#[serde(rename = "trueDamageDealtToChampions")] #[serde(rename = "trueDamageDealtToChampions")]
pub true_damage_dealt_to_champions: i64, pub true_damage_dealt_to_champions: i32,
#[serde(rename = "trueDamageTaken")] #[serde(rename = "trueDamageTaken")]
pub true_damage_taken: i64, pub true_damage_taken: i32,
#[serde(rename = "turretKills")] #[serde(rename = "turretKills")]
pub turret_kills: i64, pub turret_kills: i32,
#[serde(rename = "turretTakedowns")]
pub turret_takedowns: Option<i32>,
#[serde(rename = "turretsLost")] #[serde(rename = "turretsLost")]
pub turrets_lost: i64, pub turrets_lost: i32,
#[serde(rename = "unrealKills")] #[serde(rename = "unrealKills")]
pub unreal_kills: i64, pub unreal_kills: i32,
#[serde(rename = "visionScore")] #[serde(rename = "visionScore")]
pub vision_score: i64, pub vision_score: i32,
#[serde(rename = "visionWardsBoughtInGame")] #[serde(rename = "visionWardsBoughtInGame")]
pub vision_wards_bought_in_game: i64, pub vision_wards_bought_in_game: i32,
#[serde(rename = "wardsKilled")] #[serde(rename = "wardsKilled")]
pub wards_killed: i64, pub wards_killed: i32,
#[serde(rename = "wardsPlaced")] #[serde(rename = "wardsPlaced")]
pub wards_placed: i64, pub wards_placed: i32,
#[serde(rename = "win")] #[serde(rename = "win")]
pub win: bool, pub win: bool,
} }
/// MatchInfoTeamBan data object. /// Perks data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoTeamBan { pub struct Perks {
#[serde(rename = "championId")] #[serde(rename = "statPerks")]
pub champion_id: crate::consts::Champion, pub stat_perks: PerkStats,
#[serde(rename = "pickTurn")] #[serde(rename = "styles")]
pub pick_turn: i64, pub styles: std::vec::Vec<PerkStyle>,
} }
/// MatchInfoTeamObjective data object. /// PerkStats data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoTeamObjective { pub struct PerkStats {
#[serde(rename = "defense")]
pub defense: i32,
#[serde(rename = "flex")]
pub flex: i32,
#[serde(rename = "offense")]
pub offense: i32,
}
/// PerkStyle data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
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.
#[derive(Debug)]
#[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.
#[derive(Debug)]
#[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")]
pub team_id: i32,
#[serde(rename = "win")]
pub win: bool,
}
/// Ban data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct Ban {
#[serde(rename = "championId")]
pub champion_id: i32,
#[serde(rename = "pickTurn")]
pub pick_turn: i32,
}
/// Objectives data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct Objectives {
#[serde(rename = "baron")]
pub baron: Objective,
#[serde(rename = "champion")]
pub champion: Objective,
#[serde(rename = "dragon")]
pub dragon: Objective,
#[serde(rename = "inhibitor")]
pub inhibitor: Objective,
#[serde(rename = "riftHerald")]
pub rift_herald: Objective,
#[serde(rename = "tower")]
pub tower: Objective,
}
/// Objective data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct Objective {
#[serde(rename = "first")] #[serde(rename = "first")]
pub first: bool, pub first: bool,
#[serde(rename = "kills")] #[serde(rename = "kills")]
pub kills: i64, pub kills: i32,
} }
/// MatchInfoTeamObjectives data object. /// MatchTimeline data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoTeamObjectives { pub struct MatchTimeline {
#[serde(rename = "baron")] #[serde(rename = "metadata")]
pub baron: MatchInfoTeamObjective, pub metadata: Metadata,
#[serde(rename = "champion")] #[serde(rename = "info")]
pub champion: MatchInfoTeamObjective, pub info: MatchTimelineInfo,
#[serde(rename = "dragon")]
pub dragon: MatchInfoTeamObjective,
#[serde(rename = "inhibitor")]
pub inhibitor: MatchInfoTeamObjective,
#[serde(rename = "riftHerald")]
pub rift_herald: MatchInfoTeamObjective,
#[serde(rename = "tower")]
pub tower: MatchInfoTeamObjective,
}
/// MatchInfoTeam data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoTeam {
#[serde(rename = "bans")]
pub bans: std::vec::Vec<MatchInfoTeamBan>,
#[serde(rename = "objectives")]
pub objectives: MatchInfoTeamObjectives,
#[serde(rename = "teamId")]
pub team_id: crate::consts::Team,
#[serde(rename = "win")]
pub win: bool,
}
/// MatchInfo data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfo {
#[serde(rename = "gameCreation")]
pub game_creation: i64,
#[serde(rename = "gameDuration")]
pub game_duration: i64,
#[serde(rename = "gameId")]
pub game_id: i64,
#[serde(rename = "gameMode")]
pub game_mode: crate::consts::GameMode,
#[serde(rename = "gameName")]
pub game_name: String,
#[serde(rename = "gameStartTimestamp")]
pub game_start_timestamp: i64,
#[serde(rename = "gameType")]
pub game_type: crate::consts::GameType,
#[serde(rename = "gameVersion")]
pub game_version: String,
#[serde(rename = "mapId")]
pub map_id: crate::consts::Map,
#[serde(rename = "participants")]
pub participants: std::vec::Vec<MatchInfoParticipant>,
#[serde(rename = "platformId")]
pub platform_id: String,
#[serde(rename = "queueId")]
pub queue_id: crate::consts::Queue,
#[serde(rename = "teams")]
pub teams: std::vec::Vec<MatchInfoTeam>,
#[serde(rename = "tournamentCode")]
pub tournament_code: Option<String>,
} }
/// MatchTimelineInfoFrameEvent data object. /// MatchTimelineInfoFrameEvent data object.
#[derive(Debug)] #[derive(Debug)]
@ -1729,39 +1749,41 @@ pub mod match_v5 {
#[serde(rename = "realTimestamp")] #[serde(rename = "realTimestamp")]
pub real_timestamp: Option<i64>, pub real_timestamp: Option<i64>,
#[serde(rename = "timestamp")] #[serde(rename = "timestamp")]
pub timestamp: i64, pub timestamp: i32,
/// Timeline event type.<br>
/// (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)
#[serde(rename = "type")] #[serde(rename = "type")]
pub r#type: String, pub r#type: String,
#[serde(rename = "itemId")] #[serde(rename = "itemId")]
pub item_id: Option<i64>, pub item_id: Option<i32>,
#[serde(rename = "participantId")] #[serde(rename = "participantId")]
pub participant_id: Option<i64>, pub participant_id: Option<i32>,
#[serde(rename = "levelUpType")] #[serde(rename = "levelUpType")]
pub level_up_type: Option<String>, pub level_up_type: Option<String>,
#[serde(rename = "skillSlot")] #[serde(rename = "skillSlot")]
pub skill_slot: Option<i64>, pub skill_slot: Option<i32>,
#[serde(rename = "creatorId")] #[serde(rename = "creatorId")]
pub creator_id: Option<i64>, pub creator_id: Option<i32>,
#[serde(rename = "wardType")] #[serde(rename = "wardType")]
pub ward_type: Option<String>, pub ward_type: Option<String>,
#[serde(rename = "level")] #[serde(rename = "level")]
pub level: Option<i64>, pub level: Option<i32>,
#[serde(rename = "assistingParticipantIds")] #[serde(rename = "assistingParticipantIds")]
pub assisting_participant_ids: Option<std::vec::Vec<i64>>, pub assisting_participant_ids: Option<std::vec::Vec<i32>>,
#[serde(rename = "bounty")] #[serde(rename = "bounty")]
pub bounty: Option<i64>, pub bounty: Option<i32>,
#[serde(rename = "killStreakLength")] #[serde(rename = "killStreakLength")]
pub kill_streak_length: Option<i64>, pub kill_streak_length: Option<i32>,
#[serde(rename = "killerId")] #[serde(rename = "killerId")]
pub killer_id: Option<i64>, pub killer_id: Option<i32>,
#[serde(rename = "position")] #[serde(rename = "position")]
pub position: Option<MatchTimelineInfoFrameParticipantFramePosition>, pub position: Option<MatchTimelinePosition>,
#[serde(rename = "victimDamageDealt")] #[serde(rename = "victimDamageDealt")]
pub victim_damage_dealt: Option<std::vec::Vec<MatchTimelineInfoFrameEventVictimDamageDealt>>, pub victim_damage_dealt: Option<std::vec::Vec<MatchTimelineInfoFrameEventVictimDamageDealt>>,
#[serde(rename = "victimDamageReceived")] #[serde(rename = "victimDamageReceived")]
pub victim_damage_received: Option<std::vec::Vec<MatchTimelineInfoFrameEventVictimDamageDealt>>, pub victim_damage_received: Option<std::vec::Vec<MatchTimelineInfoFrameEventVictimDamageDealt>>,
#[serde(rename = "victimId")] #[serde(rename = "victimId")]
pub victim_id: Option<i64>, pub victim_id: Option<i32>,
#[serde(rename = "killType")] #[serde(rename = "killType")]
pub kill_type: Option<String>, pub kill_type: Option<String>,
#[serde(rename = "laneType")] #[serde(rename = "laneType")]
@ -1769,7 +1791,7 @@ pub mod match_v5 {
#[serde(rename = "teamId")] #[serde(rename = "teamId")]
pub team_id: Option<crate::consts::Team>, pub team_id: Option<crate::consts::Team>,
#[serde(rename = "multiKillLength")] #[serde(rename = "multiKillLength")]
pub multi_kill_length: Option<i64>, pub multi_kill_length: Option<i32>,
#[serde(rename = "killerTeamId")] #[serde(rename = "killerTeamId")]
pub killer_team_id: Option<crate::consts::Team>, pub killer_team_id: Option<crate::consts::Team>,
#[serde(rename = "monsterType")] #[serde(rename = "monsterType")]
@ -1781,15 +1803,15 @@ pub mod match_v5 {
#[serde(rename = "towerType")] #[serde(rename = "towerType")]
pub tower_type: Option<String>, pub tower_type: Option<String>,
#[serde(rename = "afterId")] #[serde(rename = "afterId")]
pub after_id: Option<i64>, pub after_id: Option<i32>,
#[serde(rename = "beforeId")] #[serde(rename = "beforeId")]
pub before_id: Option<i64>, pub before_id: Option<i32>,
#[serde(rename = "goldGain")] #[serde(rename = "goldGain")]
pub gold_gain: Option<i64>, pub gold_gain: Option<i32>,
#[serde(rename = "gameId")] #[serde(rename = "gameId")]
pub game_id: Option<i64>, pub game_id: Option<i64>,
#[serde(rename = "winningTeam")] #[serde(rename = "winningTeam")]
pub winning_team: Option<i64>, pub winning_team: Option<i32>,
#[serde(rename = "transformType")] #[serde(rename = "transformType")]
pub transform_type: Option<String>, pub transform_type: Option<String>,
#[serde(rename = "name")] #[serde(rename = "name")]
@ -1800,93 +1822,93 @@ pub mod match_v5 {
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchTimelineInfoFrameParticipantFrameChampionStats { pub struct MatchTimelineInfoFrameParticipantFrameChampionStats {
#[serde(rename = "abilityHaste")] #[serde(rename = "abilityHaste")]
pub ability_haste: i64, pub ability_haste: i32,
#[serde(rename = "abilityPower")] #[serde(rename = "abilityPower")]
pub ability_power: i64, pub ability_power: i32,
#[serde(rename = "armor")] #[serde(rename = "armor")]
pub armor: i64, pub armor: i32,
#[serde(rename = "armorPen")] #[serde(rename = "armorPen")]
pub armor_pen: i64, pub armor_pen: i32,
#[serde(rename = "armorPenPercent")] #[serde(rename = "armorPenPercent")]
pub armor_pen_percent: i64, pub armor_pen_percent: i32,
#[serde(rename = "attackDamage")] #[serde(rename = "attackDamage")]
pub attack_damage: i64, pub attack_damage: i32,
#[serde(rename = "attackSpeed")] #[serde(rename = "attackSpeed")]
pub attack_speed: i64, pub attack_speed: i32,
#[serde(rename = "bonusArmorPenPercent")] #[serde(rename = "bonusArmorPenPercent")]
pub bonus_armor_pen_percent: i64, pub bonus_armor_pen_percent: i32,
#[serde(rename = "bonusMagicPenPercent")] #[serde(rename = "bonusMagicPenPercent")]
pub bonus_magic_pen_percent: i64, pub bonus_magic_pen_percent: i32,
#[serde(rename = "ccReduction")] #[serde(rename = "ccReduction")]
pub cc_reduction: i64, pub cc_reduction: i32,
#[serde(rename = "cooldownReduction")] #[serde(rename = "cooldownReduction")]
pub cooldown_reduction: i64, pub cooldown_reduction: i32,
#[serde(rename = "health")] #[serde(rename = "health")]
pub health: i64, pub health: i32,
#[serde(rename = "healthMax")] #[serde(rename = "healthMax")]
pub health_max: i64, pub health_max: i32,
#[serde(rename = "healthRegen")] #[serde(rename = "healthRegen")]
pub health_regen: i64, pub health_regen: i32,
#[serde(rename = "lifesteal")] #[serde(rename = "lifesteal")]
pub lifesteal: i64, pub lifesteal: i32,
#[serde(rename = "magicPen")] #[serde(rename = "magicPen")]
pub magic_pen: i64, pub magic_pen: i32,
#[serde(rename = "magicPenPercent")] #[serde(rename = "magicPenPercent")]
pub magic_pen_percent: i64, pub magic_pen_percent: i32,
#[serde(rename = "magicResist")] #[serde(rename = "magicResist")]
pub magic_resist: i64, pub magic_resist: i32,
#[serde(rename = "movementSpeed")] #[serde(rename = "movementSpeed")]
pub movement_speed: i64, pub movement_speed: i32,
#[serde(rename = "omnivamp")] #[serde(rename = "omnivamp")]
pub omnivamp: i64, pub omnivamp: i32,
#[serde(rename = "physicalVamp")] #[serde(rename = "physicalVamp")]
pub physical_vamp: i64, pub physical_vamp: i32,
#[serde(rename = "power")] #[serde(rename = "power")]
pub power: i64, pub power: i32,
#[serde(rename = "powerMax")] #[serde(rename = "powerMax")]
pub power_max: i64, pub power_max: i32,
#[serde(rename = "powerRegen")] #[serde(rename = "powerRegen")]
pub power_regen: i64, pub power_regen: i32,
#[serde(rename = "spellVamp")] #[serde(rename = "spellVamp")]
pub spell_vamp: i64, pub spell_vamp: i32,
} }
/// MatchTimelineInfoFrameParticipantFrameDamageStats data object. /// MatchTimelineInfoFrameParticipantFrameDamageStats data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchTimelineInfoFrameParticipantFrameDamageStats { pub struct MatchTimelineInfoFrameParticipantFrameDamageStats {
#[serde(rename = "magicDamageDone")] #[serde(rename = "magicDamageDone")]
pub magic_damage_done: i64, pub magic_damage_done: i32,
#[serde(rename = "magicDamageDoneToChampions")] #[serde(rename = "magicDamageDoneToChampions")]
pub magic_damage_done_to_champions: i64, pub magic_damage_done_to_champions: i32,
#[serde(rename = "magicDamageTaken")] #[serde(rename = "magicDamageTaken")]
pub magic_damage_taken: i64, pub magic_damage_taken: i32,
#[serde(rename = "physicalDamageDone")] #[serde(rename = "physicalDamageDone")]
pub physical_damage_done: i64, pub physical_damage_done: i32,
#[serde(rename = "physicalDamageDoneToChampions")] #[serde(rename = "physicalDamageDoneToChampions")]
pub physical_damage_done_to_champions: i64, pub physical_damage_done_to_champions: i32,
#[serde(rename = "physicalDamageTaken")] #[serde(rename = "physicalDamageTaken")]
pub physical_damage_taken: i64, pub physical_damage_taken: i32,
#[serde(rename = "totalDamageDone")] #[serde(rename = "totalDamageDone")]
pub total_damage_done: i64, pub total_damage_done: i32,
#[serde(rename = "totalDamageDoneToChampions")] #[serde(rename = "totalDamageDoneToChampions")]
pub total_damage_done_to_champions: i64, pub total_damage_done_to_champions: i32,
#[serde(rename = "totalDamageTaken")] #[serde(rename = "totalDamageTaken")]
pub total_damage_taken: i64, pub total_damage_taken: i32,
#[serde(rename = "trueDamageDone")] #[serde(rename = "trueDamageDone")]
pub true_damage_done: i64, pub true_damage_done: i32,
#[serde(rename = "trueDamageDoneToChampions")] #[serde(rename = "trueDamageDoneToChampions")]
pub true_damage_done_to_champions: i64, pub true_damage_done_to_champions: i32,
#[serde(rename = "trueDamageTaken")] #[serde(rename = "trueDamageTaken")]
pub true_damage_taken: i64, pub true_damage_taken: i32,
} }
/// MatchTimelineInfoFrameParticipantFramePosition data object. /// MatchTimelinePosition data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchTimelineInfoFrameParticipantFramePosition { pub struct MatchTimelinePosition {
#[serde(rename = "x")] #[serde(rename = "x")]
pub x: i64, pub x: i32,
#[serde(rename = "y")] #[serde(rename = "y")]
pub y: i64, pub y: i32,
} }
/// MatchTimelineInfoFrameParticipantFrame data object. /// MatchTimelineInfoFrameParticipantFrame data object.
#[derive(Debug)] #[derive(Debug)]
@ -1895,27 +1917,27 @@ pub mod match_v5 {
#[serde(rename = "championStats")] #[serde(rename = "championStats")]
pub champion_stats: MatchTimelineInfoFrameParticipantFrameChampionStats, pub champion_stats: MatchTimelineInfoFrameParticipantFrameChampionStats,
#[serde(rename = "currentGold")] #[serde(rename = "currentGold")]
pub current_gold: i64, pub current_gold: i32,
#[serde(rename = "damageStats")] #[serde(rename = "damageStats")]
pub damage_stats: MatchTimelineInfoFrameParticipantFrameDamageStats, pub damage_stats: MatchTimelineInfoFrameParticipantFrameDamageStats,
#[serde(rename = "goldPerSecond")] #[serde(rename = "goldPerSecond")]
pub gold_per_second: i64, pub gold_per_second: i32,
#[serde(rename = "jungleMinionsKilled")] #[serde(rename = "jungleMinionsKilled")]
pub jungle_minions_killed: i64, pub jungle_minions_killed: i32,
#[serde(rename = "level")] #[serde(rename = "level")]
pub level: i64, pub level: i32,
#[serde(rename = "minionsKilled")] #[serde(rename = "minionsKilled")]
pub minions_killed: i64, pub minions_killed: i32,
#[serde(rename = "participantId")] #[serde(rename = "participantId")]
pub participant_id: i64, pub participant_id: i32,
#[serde(rename = "position")] #[serde(rename = "position")]
pub position: MatchTimelineInfoFrameParticipantFramePosition, pub position: MatchTimelinePosition,
#[serde(rename = "timeEnemySpentControlled")] #[serde(rename = "timeEnemySpentControlled")]
pub time_enemy_spent_controlled: i64, pub time_enemy_spent_controlled: i32,
#[serde(rename = "totalGold")] #[serde(rename = "totalGold")]
pub total_gold: i64, pub total_gold: i32,
#[serde(rename = "xp")] #[serde(rename = "xp")]
pub xp: i64, pub xp: i32,
} }
/// MatchTimelineInfoFrameParticipantFrames data object. /// MatchTimelineInfoFrameParticipantFrames data object.
#[derive(Debug)] #[derive(Debug)]
@ -1951,7 +1973,7 @@ pub mod match_v5 {
#[serde(rename = "participantFrames")] #[serde(rename = "participantFrames")]
pub participant_frames: MatchTimelineInfoFrameParticipantFrames, pub participant_frames: MatchTimelineInfoFrameParticipantFrames,
#[serde(rename = "timestamp")] #[serde(rename = "timestamp")]
pub timestamp: i64, pub timestamp: i32,
} }
/// MatchTimelineInfoFrameEventVictimDamageDealt data object. /// MatchTimelineInfoFrameEventVictimDamageDealt data object.
#[derive(Debug)] #[derive(Debug)]
@ -1960,19 +1982,19 @@ pub mod match_v5 {
#[serde(rename = "basic")] #[serde(rename = "basic")]
pub basic: bool, pub basic: bool,
#[serde(rename = "magicDamage")] #[serde(rename = "magicDamage")]
pub magic_damage: i64, pub magic_damage: i32,
#[serde(rename = "name")] #[serde(rename = "name")]
pub name: String, pub name: String,
#[serde(rename = "participantId")] #[serde(rename = "participantId")]
pub participant_id: i64, pub participant_id: i32,
#[serde(rename = "physicalDamage")] #[serde(rename = "physicalDamage")]
pub physical_damage: i64, pub physical_damage: i32,
#[serde(rename = "spellName")] #[serde(rename = "spellName")]
pub spell_name: String, pub spell_name: String,
#[serde(rename = "spellSlot")] #[serde(rename = "spellSlot")]
pub spell_slot: i64, pub spell_slot: i32,
#[serde(rename = "trueDamage")] #[serde(rename = "trueDamage")]
pub true_damage: i64, pub true_damage: i32,
#[serde(rename = "type")] #[serde(rename = "type")]
pub r#type: String, pub r#type: String,
} }
@ -1981,7 +2003,7 @@ pub mod match_v5 {
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchTimelineInfoParticipant { pub struct MatchTimelineInfoParticipant {
#[serde(rename = "participantId")] #[serde(rename = "participantId")]
pub participant_id: i64, pub participant_id: i32,
#[serde(rename = "puuid")] #[serde(rename = "puuid")]
pub puuid: String, pub puuid: String,
} }
@ -1990,7 +2012,7 @@ pub mod match_v5 {
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchTimelineInfo { pub struct MatchTimelineInfo {
#[serde(rename = "frameInterval")] #[serde(rename = "frameInterval")]
pub frame_interval: i64, pub frame_interval: i32,
#[serde(rename = "frames")] #[serde(rename = "frames")]
pub frames: std::vec::Vec<MatchTimelineInfoFrame>, pub frames: std::vec::Vec<MatchTimelineInfoFrame>,
#[serde(rename = "gameId")] #[serde(rename = "gameId")]