mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-26 10:56:34 +00:00
Regen for new champion-mastery-v4.ChampionMasteryDto
fields championSeasonMilestone
, markRequiredForNextLevel
https://github.com/RiotGames/developer-relations/issues/915
This commit is contained in:
parent
1775ffb5d2
commit
267f5f096e
3 changed files with 9 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
///////////////////////////////////////////////
|
||||
|
||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version 3ec94d23fb5d98706fbbb55a038f47798cf14813
|
||||
// Version 476b88d4eab4128e0842db0ab6ded999e00f6ae5
|
||||
|
||||
//! Automatically generated endpoint handles.
|
||||
#![allow(clippy::let_and_return, clippy::too_many_arguments)]
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
///////////////////////////////////////////////
|
||||
|
||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version 3ec94d23fb5d98706fbbb55a038f47798cf14813
|
||||
// Version 476b88d4eab4128e0842db0ab6ded999e00f6ae5
|
||||
|
||||
//! Metadata about the Riot API and Riven.
|
||||
//!
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
///////////////////////////////////////////////
|
||||
|
||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version 3ec94d23fb5d98706fbbb55a038f47798cf14813
|
||||
// Version 476b88d4eab4128e0842db0ab6ded999e00f6ae5
|
||||
|
||||
#![allow(missing_docs)]
|
||||
|
||||
|
@ -68,6 +68,8 @@ pub mod champion_mastery_v4 {
|
|||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))]
|
||||
pub struct ChampionMastery {
|
||||
#[serde(rename = "puuid")]
|
||||
pub puuid: String,
|
||||
/// 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,
|
||||
|
@ -95,9 +97,10 @@ pub mod champion_mastery_v4 {
|
|||
/// 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,
|
||||
#[serde(rename = "puuid")]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub puuid: Option<String>,
|
||||
#[serde(rename = "markRequiredForNextLevel")]
|
||||
pub mark_required_for_next_level: i32,
|
||||
#[serde(rename = "championSeasonMilestone")]
|
||||
pub champion_season_milestone: i32,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue