forked from mirror/Riven
1
0
Fork 0

Regen, release 2.0.0-beta.5

users/mingwei/unknown-variant-messy
Mingwei Samuel 2021-09-02 21:22:16 -07:00
parent 44320bdeeb
commit dafc181bbe
4 changed files with 173 additions and 144 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "riven" name = "riven"
version = "2.0.0-beta.4" version = "2.0.0-beta.5"
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

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 653f68e2d03da44548ff93bc4ffe558e5e70e906 // Version 12e3bc69894adde9001edb3c64126cd90d4531bd
//! Automatically generated endpoint handles. //! Automatically generated endpoint handles.
@ -1135,6 +1135,8 @@ impl<'a> MatchV5<'a> {
/// # Parameters /// # Parameters
/// * `route` - Route to query. /// * `route` - Route to query.
/// * `puuid` (required, in path) /// * `puuid` (required, in path)
/// * `start_time` (optional, in query) - Epoch timestamp in seconds.
/// * `end_time` (optional, in query) - Epoch timestamp in seconds.
/// * `queue` (optional, in query) - 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, in query) - 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, in query) - 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, in query) - 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, in query) - Defaults to 0. Start index. /// * `start` (optional, in query) - Defaults to 0. Start index.
@ -1143,13 +1145,15 @@ 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, route: RegionalRoute, puuid: &str, count: Option<i32>, queue: Option<i32>, start: Option<i32>, r#type: Option<&str>) pub fn get_match_ids_by_puuid(&self, route: RegionalRoute, 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 route_str = route.into(); let route_str = route.into();
let request = self.base.request(Method::GET, route_str, &format!("/lol/match/v5/matches/by-puuid/{}/ids", puuid)); let request = self.base.request(Method::GET, route_str, &format!("/lol/match/v5/matches/by-puuid/{}/ids", puuid));
let mut request = request; if let Some(count) = count { request = request.query(&[ ("count", count) ]); } let mut request = request; if let Some(count) = count { request = request.query(&[ ("count", count) ]); }
let mut request = request; if let Some(end_time) = end_time { request = request.query(&[ ("endTime", end_time) ]); }
let mut request = request; if let Some(queue) = queue { request = request.query(&[ ("queue", queue) ]); } let mut request = request; if let Some(queue) = queue { request = request.query(&[ ("queue", queue) ]); }
let mut request = request; if let Some(start_time) = start_time { request = request.query(&[ ("startTime", start_time) ]); }
let mut request = request; if let Some(start) = start { request = request.query(&[ ("start", start) ]); } let mut request = request; if let Some(start) = start { request = request.query(&[ ("start", start) ]); }
let mut request = request; if let Some(r#type) = r#type { request = request.query(&[ ("type", r#type) ]); } let mut request = request; if let Some(r#type) = r#type { request = request.query(&[ ("type", r#type) ]); }
let future = self.base.execute_val::<Vec<String>>("match-v5.getMatchIdsByPUUID", route_str, request); let future = self.base.execute_val::<Vec<String>>("match-v5.getMatchIdsByPUUID", route_str, request);

View File

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 653f68e2d03da44548ff93bc4ffe558e5e70e906 // 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 653f68e2d03da44548ff93bc4ffe558e5e70e906 // Version 12e3bc69894adde9001edb3c64126cd90d4531bd
//! Data transfer structs. //! Data transfer structs.
//! //!
@ -738,10 +738,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.
@ -756,16 +756,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.
@ -1475,79 +1475,74 @@ 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: i32, #[serde(rename = "gameCreation")]
#[serde(rename = "flex")] pub game_creation: i64,
pub flex: i32, /// Game length in milliseconds.
#[serde(rename = "offense")] #[serde(rename = "gameDuration")]
pub offense: i32, 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")]
#[serde(skip_serializing_if = "Option::is_none")]
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: i32,
#[serde(rename = "var1")]
pub var1: i32,
#[serde(rename = "var2")]
pub var2: i32,
#[serde(rename = "var3")]
pub var3: i32,
}
/// 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: i32,
}
/// 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: i32, pub assists: i32,
#[serde(rename = "baronKills")] #[serde(rename = "baronKills")]
@ -1559,7 +1554,7 @@ pub mod match_v5 {
#[serde(rename = "champLevel")] #[serde(rename = "champLevel")]
pub champ_level: i32, 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")]
@ -1602,6 +1597,9 @@ pub mod match_v5 {
pub individual_position: String, pub individual_position: String,
#[serde(rename = "inhibitorKills")] #[serde(rename = "inhibitorKills")]
pub inhibitor_kills: i32, pub inhibitor_kills: i32,
#[serde(rename = "inhibitorTakedowns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub inhibitor_takedowns: Option<i32>,
#[serde(rename = "inhibitorsLost")] #[serde(rename = "inhibitorsLost")]
pub inhibitors_lost: i32, pub inhibitors_lost: i32,
#[serde(rename = "item0")] #[serde(rename = "item0")]
@ -1644,6 +1642,9 @@ pub mod match_v5 {
pub neutral_minions_killed: i32, pub neutral_minions_killed: i32,
#[serde(rename = "nexusKills")] #[serde(rename = "nexusKills")]
pub nexus_kills: i32, pub nexus_kills: i32,
#[serde(rename = "nexusTakedowns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub nexus_takedowns: Option<i32>,
#[serde(rename = "nexusLost")] #[serde(rename = "nexusLost")]
pub nexus_lost: i32, pub nexus_lost: i32,
#[serde(rename = "objectivesStolen")] #[serde(rename = "objectivesStolen")]
@ -1655,7 +1656,7 @@ pub mod match_v5 {
#[serde(rename = "pentaKills")] #[serde(rename = "pentaKills")]
pub penta_kills: i32, 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: i32, pub physical_damage_dealt: i32,
#[serde(rename = "physicalDamageDealtToChampions")] #[serde(rename = "physicalDamageDealtToChampions")]
@ -1701,7 +1702,7 @@ pub mod match_v5 {
#[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")]
@ -1738,6 +1739,9 @@ pub mod match_v5 {
pub true_damage_taken: i32, pub true_damage_taken: i32,
#[serde(rename = "turretKills")] #[serde(rename = "turretKills")]
pub turret_kills: i32, pub turret_kills: i32,
#[serde(rename = "turretTakedowns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub turret_takedowns: Option<i32>,
#[serde(rename = "turretsLost")] #[serde(rename = "turretsLost")]
pub turrets_lost: i32, pub turrets_lost: i32,
#[serde(rename = "unrealKills")] #[serde(rename = "unrealKills")]
@ -1753,87 +1757,106 @@ pub mod match_v5 {
#[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 = "statPerks")]
pub stat_perks: PerkStats,
#[serde(rename = "styles")]
pub styles: std::vec::Vec<PerkStyle>,
}
/// PerkStats data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
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")] #[serde(rename = "championId")]
pub champion_id: crate::consts::Champion, pub champion_id: i32,
#[serde(rename = "pickTurn")] #[serde(rename = "pickTurn")]
pub pick_turn: i32, pub pick_turn: i32,
} }
/// MatchInfoTeamObjective data object. /// Objectives data object.
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct MatchInfoTeamObjective { 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: i32, 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: i32,
#[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")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tournament_code: Option<String>,
} }
/// MatchTimelineInfoFrameEvent data object. /// MatchTimelineInfoFrameEvent data object.
#[derive(Debug)] #[derive(Debug)]
@ -1841,9 +1864,11 @@ pub mod match_v5 {
pub struct MatchTimelineInfoFrameEvent { pub struct MatchTimelineInfoFrameEvent {
#[serde(rename = "realTimestamp")] #[serde(rename = "realTimestamp")]
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub real_timestamp: Option<i32>, pub real_timestamp: Option<i64>,
#[serde(rename = "timestamp")] #[serde(rename = "timestamp")]
pub timestamp: i32, 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")]
@ -1881,7 +1906,7 @@ pub mod match_v5 {
pub killer_id: Option<i32>, pub killer_id: Option<i32>,
#[serde(rename = "position")] #[serde(rename = "position")]
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub position: Option<MatchTimelineInfoFrameParticipantFramePosition>, pub position: Option<MatchTimelinePosition>,
#[serde(rename = "victimDamageDealt")] #[serde(rename = "victimDamageDealt")]
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub victim_damage_dealt: Option<std::vec::Vec<MatchTimelineInfoFrameEventVictimDamageDealt>>, pub victim_damage_dealt: Option<std::vec::Vec<MatchTimelineInfoFrameEventVictimDamageDealt>>,
@ -1929,7 +1954,7 @@ pub mod match_v5 {
pub gold_gain: Option<i32>, pub gold_gain: Option<i32>,
#[serde(rename = "gameId")] #[serde(rename = "gameId")]
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub game_id: Option<i32>, pub game_id: Option<i64>,
#[serde(rename = "winningTeam")] #[serde(rename = "winningTeam")]
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub winning_team: Option<i32>, pub winning_team: Option<i32>,
@ -2024,10 +2049,10 @@ pub mod match_v5 {
#[serde(rename = "trueDamageTaken")] #[serde(rename = "trueDamageTaken")]
pub true_damage_taken: i32, 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: i32, pub x: i32,
#[serde(rename = "y")] #[serde(rename = "y")]
@ -2054,7 +2079,7 @@ pub mod match_v5 {
#[serde(rename = "participantId")] #[serde(rename = "participantId")]
pub participant_id: i32, 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: i32, pub time_enemy_spent_controlled: i32,
#[serde(rename = "totalGold")] #[serde(rename = "totalGold")]
@ -2139,7 +2164,7 @@ pub mod match_v5 {
#[serde(rename = "frames")] #[serde(rename = "frames")]
pub frames: std::vec::Vec<MatchTimelineInfoFrame>, pub frames: std::vec::Vec<MatchTimelineInfoFrame>,
#[serde(rename = "gameId")] #[serde(rename = "gameId")]
pub game_id: i32, pub game_id: i64,
#[serde(rename = "participants")] #[serde(rename = "participants")]
pub participants: std::vec::Vec<MatchTimelineInfoParticipant>, pub participants: std::vec::Vec<MatchTimelineInfoParticipant>,
} }