Struct r6tracker::types::overwolf::OverwolfPlayer
source · pub struct OverwolfPlayer {Show 13 fields
pub player_id: String,
pub name: String,
pub avatar: Url,
pub level: u64,
pub is_premium: bool,
pub suspected_cheater: bool,
pub current_season: u64,
pub current_season_best_region: Option<OverwolfSeason>,
pub lifetime_stats: LifetimeStats,
pub seasons: Vec<OverwolfSeason>,
pub operators: Vec<OverwolfOperator>,
pub seasonal_operators: Option<SeasonalOperators>,
pub unknown: HashMap<String, Value>,
}
Expand description
An Overwolf Player
Fields§
§player_id: String
Player ID
name: String
Player name
avatar: Url
Avatar URL
level: u64
Player Level
Probably r6tracker premium
suspected_cheater: bool
Whether this person is a suspected cheater
current_season: u64
The current season
current_season_best_region: Option<OverwolfSeason>
Current season best region stats
lifetime_stats: LifetimeStats
Lifetime Stats
seasons: Vec<OverwolfSeason>
All seasonal stats
operators: Vec<OverwolfOperator>
Operator Stats
seasonal_operators: Option<SeasonalOperators>
Seasonal Operator Stats
unknown: HashMap<String, Value>
Unknown keys
Implementations§
source§impl OverwolfPlayer
impl OverwolfPlayer
sourcepub fn get_current_casual_season(&self) -> Option<&OverwolfSeason>
pub fn get_current_casual_season(&self) -> Option<&OverwolfSeason>
Get the current casual season stats for this user
sourcepub fn iter_ranked_seasons(&self) -> impl Iterator<Item = &OverwolfSeason>
pub fn iter_ranked_seasons(&self) -> impl Iterator<Item = &OverwolfSeason>
Iterate over ranked seasons
sourcepub fn iter_placed_ranked_seasons(
&self
) -> impl Iterator<Item = &OverwolfSeason>
pub fn iter_placed_ranked_seasons( &self ) -> impl Iterator<Item = &OverwolfSeason>
Iterate over ranked seasons where the user placed
sourcepub fn get_max_season(&self) -> Option<&OverwolfSeason>
pub fn get_max_season(&self) -> Option<&OverwolfSeason>
Get the season with the max mmr
sourcepub fn get_lifetime_ranked_kd(&self) -> Option<f64>
pub fn get_lifetime_ranked_kd(&self) -> Option<f64>
Get the lifetime K/D for ranked
sourcepub fn get_lifetime_ranked_win_pct(&self) -> Option<f64>
pub fn get_lifetime_ranked_win_pct(&self) -> Option<f64>
Get lifetime ranked win %
Trait Implementations§
source§impl Debug for OverwolfPlayer
impl Debug for OverwolfPlayer
source§impl<'de> Deserialize<'de> for OverwolfPlayer
impl<'de> Deserialize<'de> for OverwolfPlayer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OverwolfPlayer
impl Send for OverwolfPlayer
impl Sync for OverwolfPlayer
impl Unpin for OverwolfPlayer
impl UnwindSafe for OverwolfPlayer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more