Regen for fixed `val-match-v1` spec

val_queue
Mingwei Samuel 2024-04-19 13:26:01 -07:00
parent 6ee5687437
commit 4a7e8f4331
3 changed files with 68 additions and 44 deletions

View File

@ -8,7 +8,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 476b88d4eab4128e0842db0ab6ded999e00f6ae5
// Version 596ae582b11c95961b2f374729458d455ad59bbf
//! Automatically generated endpoint handles.
#![allow(clippy::let_and_return, clippy::too_many_arguments)]

View File

@ -8,7 +8,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 476b88d4eab4128e0842db0ab6ded999e00f6ae5
// Version 596ae582b11c95961b2f374729458d455ad59bbf
//! Metadata about the Riot API and Riven.
//!

View File

@ -8,7 +8,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 476b88d4eab4128e0842db0ab6ded999e00f6ae5
// Version 596ae582b11c95961b2f374729458d455ad59bbf
#![allow(missing_docs)]
@ -404,9 +404,9 @@ pub mod lol_challenges_v1 {
}
/// State data object.
/// # Description
/// DISABLED - not visible and not calculated,<br>
/// HIDDEN - not visible, but calculated,<br>
/// ENABLED - visible and calculated,<br>
/// DISABLED - not visible and not calculated,<br>
/// HIDDEN - not visible, but calculated,<br>
/// ENABLED - visible and calculated,<br>
/// ARCHIVED - visible, but not calculated
///
/// Note: This struct is automatically generated
@ -417,7 +417,7 @@ pub mod lol_challenges_v1 {
}
/// Tracking data object.
/// # Description
/// LIFETIME - stats are incremented without reset,<br>
/// LIFETIME - stats are incremented without reset,<br>
/// SEASON - stats are accumulated by season and reset at the beginning of new season
///
/// Note: This struct is automatically generated
@ -440,15 +440,15 @@ pub mod lol_challenges_v1 {
}
/// Level data object.
/// # Description
/// 0 NONE,<br>
/// 1 IRON,<br>
/// 2 BRONZE,<br>
/// 3 SILVER,<br>
/// 4 GOLD,<br>
/// 5 PLATINUM,<br>
/// 6 DIAMOND,<br>
/// 7 MASTER,<br>
/// 8 GRANDMASTER,<br>
/// 0 NONE,<br>
/// 1 IRON,<br>
/// 2 BRONZE,<br>
/// 3 SILVER,<br>
/// 4 GOLD,<br>
/// 5 PLATINUM,<br>
/// 6 DIAMOND,<br>
/// 7 MASTER,<br>
/// 8 GRANDMASTER,<br>
/// 9 CHALLENGER
///
/// Note: This struct is automatically generated
@ -1848,7 +1848,7 @@ pub mod match_v5 {
pub real_timestamp: Option<i64>,
#[serde(rename = "timestamp")]
pub timestamp: i32,
/// Timeline event type.<br>
/// 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, OBJECTIVE_BOUNTY_FINISH, OBJECTIVE_BOUNTY_PRESTART, PAUSE_END, PAUSE_START, SKILL_LEVEL_UP, TURRET_PLATE_DESTROYED, WARD_KILL, WARD_PLACED)
#[serde(rename = "type")]
pub r#type: String,
@ -2331,7 +2331,7 @@ pub mod spectator_tft_v5 {
#[derive(serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))]
pub struct FeaturedGameInfo {
/// The game mode<br>
/// The game mode<br>
/// (Legal values: TFT)
#[serde(rename = "gameMode")]
pub game_mode: crate::consts::GameMode,
@ -2341,7 +2341,7 @@ pub mod spectator_tft_v5 {
/// The ID of the map
#[serde(rename = "mapId")]
pub map_id: crate::consts::Map,
/// The game type<br>
/// The game type<br>
/// (Legal values: MATCHED)
#[serde(rename = "gameType")]
pub game_type: crate::consts::GameType,
@ -2553,7 +2553,7 @@ pub mod spectator_v5 {
#[derive(serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))]
pub struct FeaturedGameInfo {
/// The game mode<br>
/// The game mode<br>
/// (Legal values: CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD, KINGPORO)
#[serde(rename = "gameMode")]
pub game_mode: crate::consts::GameMode,
@ -2563,7 +2563,7 @@ pub mod spectator_v5 {
/// The ID of the map
#[serde(rename = "mapId")]
pub map_id: crate::consts::Map,
/// The game type<br>
/// The game type<br>
/// (Legal values: CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME)
#[serde(rename = "gameType")]
pub game_type: crate::consts::GameType,
@ -2744,7 +2744,7 @@ pub mod tft_league_v1 {
pub summoner_id: String,
#[serde(rename = "queueType")]
pub queue_type: crate::consts::QueueType,
/// Only included for the RANKED_TFT_TURBO queueType.<br>
/// Only included for the RANKED_TFT_TURBO queueType.<br>
/// (Legal values: ORANGE, PURPLE, BLUE, GREEN, GRAY)
#[serde(rename = "ratedTier")]
#[serde(skip_serializing_if = "Option::is_none")]
@ -3257,15 +3257,15 @@ pub mod tournament_stub_v5 {
/// The team size of the game. Valid values are 1-5.
#[serde(rename = "teamSize")]
pub team_size: i32,
/// The pick type of the game.<br>
/// The pick type of the game.<br>
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[serde(rename = "pickType")]
pub pick_type: String,
/// The map type of the game.<br>
/// The map type of the game.<br>
/// (Legal values: SUMMONERS_RIFT, HOWLING_ABYSS)
#[serde(rename = "mapType")]
pub map_type: String,
/// The spectator type of the game.<br>
/// The spectator type of the game.<br>
/// (Legal values: NONE, LOBBYONLY, ALL)
#[serde(rename = "spectatorType")]
pub spectator_type: String,
@ -3308,7 +3308,7 @@ pub mod tournament_stub_v5 {
/// The tournament code's ID.
#[serde(rename = "id")]
pub id: i32,
/// The tournament code's region.<br>
/// The tournament code's region.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR, KR)
#[serde(rename = "region")]
pub region: String,
@ -3347,7 +3347,7 @@ pub mod tournament_stub_v5 {
#[derive(serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))]
pub struct ProviderRegistrationParametersV5 {
/// The region in which the provider will be running tournaments.<br>
/// The region in which the provider will be running tournaments.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR, KR)
#[serde(rename = "region")]
pub region: String,
@ -3391,15 +3391,15 @@ pub mod tournament_v5 {
/// The team size of the game. Valid values are 1-5.
#[serde(rename = "teamSize")]
pub team_size: i32,
/// The pick type of the game.<br>
/// The pick type of the game.<br>
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[serde(rename = "pickType")]
pub pick_type: String,
/// The map type of the game.<br>
/// The map type of the game.<br>
/// (Legal values: SUMMONERS_RIFT, HOWLING_ABYSS)
#[serde(rename = "mapType")]
pub map_type: String,
/// The spectator type of the game.<br>
/// The spectator type of the game.<br>
/// (Legal values: NONE, LOBBYONLY, ALL)
#[serde(rename = "spectatorType")]
pub spectator_type: String,
@ -3442,7 +3442,7 @@ pub mod tournament_v5 {
/// The tournament code's ID.
#[serde(rename = "id")]
pub id: i32,
/// The tournament code's region.<br>
/// The tournament code's region.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR, KR, PH, SG, TH, TW, VN)
#[serde(rename = "region")]
pub region: String,
@ -3462,15 +3462,15 @@ pub mod tournament_v5 {
#[serde(rename = "allowedParticipants")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allowed_participants: Option<std::vec::Vec<String>>,
/// The pick type<br>
/// The pick type<br>
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[serde(rename = "pickType")]
pub pick_type: String,
/// The map type<br>
/// The map type<br>
/// (Legal values: SUMMONERS_RIFT, HOWLING_ABYSS)
#[serde(rename = "mapType")]
pub map_type: String,
/// The spectator type<br>
/// The spectator type<br>
/// (Legal values: NONE, LOBBYONLY, ALL)
#[serde(rename = "spectatorType")]
pub spectator_type: String,
@ -3543,7 +3543,7 @@ pub mod tournament_v5 {
#[derive(serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))]
pub struct ProviderRegistrationParametersV5 {
/// The region in which the provider will be running tournaments.<br>
/// The region in which the provider will be running tournaments.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR, KR, PH, SG, TH, TW, VN)
#[serde(rename = "region")]
pub region: String,
@ -3751,6 +3751,15 @@ pub mod val_match_v1 {
pub is_ranked: bool,
#[serde(rename = "seasonId")]
pub season_id: String,
#[serde(rename = "gameVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub game_version: Option<String>,
#[serde(rename = "region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub region: Option<String>,
#[serde(rename = "premierMatchInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub premier_match_info: Option<serde_json::Map<String, serde_json::Value>>,
}
/// Player data object.
#[derive(Clone, Debug)]
@ -3777,6 +3786,12 @@ pub mod val_match_v1 {
pub player_card: String,
#[serde(rename = "playerTitle")]
pub player_title: String,
#[serde(rename = "isObserver")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_observer: Option<bool>,
#[serde(rename = "accountLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_level: Option<i32>,
}
/// PlayerStats data object.
#[derive(Clone, Debug)]
@ -3796,7 +3811,8 @@ pub mod val_match_v1 {
#[serde(rename = "playtimeMillis")]
pub playtime_millis: i32,
#[serde(rename = "abilityCasts")]
pub ability_casts: AbilityCasts,
#[serde(skip_serializing_if = "Option::is_none")]
pub ability_casts: Option<AbilityCasts>,
}
/// AbilityCasts data object.
#[derive(Clone, Debug)]
@ -3855,14 +3871,17 @@ pub mod val_match_v1 {
pub winning_team: String,
/// PUUID of player
#[serde(rename = "bombPlanter")]
pub bomb_planter: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub bomb_planter: Option<String>,
/// PUUID of player
#[serde(rename = "bombDefuser")]
pub bomb_defuser: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub bomb_defuser: Option<String>,
#[serde(rename = "plantRoundTime")]
pub plant_round_time: i32,
#[serde(rename = "plantPlayerLocations")]
pub plant_player_locations: std::vec::Vec<PlayerLocations>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plant_player_locations: Option<std::vec::Vec<PlayerLocations>>,
#[serde(rename = "plantLocation")]
pub plant_location: Location,
#[serde(rename = "plantSite")]
@ -3870,7 +3889,8 @@ pub mod val_match_v1 {
#[serde(rename = "defuseRoundTime")]
pub defuse_round_time: i32,
#[serde(rename = "defusePlayerLocations")]
pub defuse_player_locations: std::vec::Vec<PlayerLocations>,
#[serde(skip_serializing_if = "Option::is_none")]
pub defuse_player_locations: Option<std::vec::Vec<PlayerLocations>>,
#[serde(rename = "defuseLocation")]
pub defuse_location: Location,
#[serde(rename = "playerStats")]
@ -3994,13 +4014,17 @@ pub mod val_match_v1 {
#[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))]
pub struct Ability {
#[serde(rename = "grenadeEffects")]
pub grenade_effects: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub grenade_effects: Option<String>,
#[serde(rename = "ability1Effects")]
pub ability1_effects: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub ability1_effects: Option<String>,
#[serde(rename = "ability2Effects")]
pub ability2_effects: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub ability2_effects: Option<String>,
#[serde(rename = "ultimateEffects")]
pub ultimate_effects: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub ultimate_effects: Option<String>,
}
/// Matchlist data object.
#[derive(Clone, Debug)]