Struct rosu_v2::model::user::UserStatistics
source · pub struct UserStatistics {Show 14 fields
pub accuracy: f32,
pub country_rank: Option<u32>,
pub global_rank: Option<u32>,
pub grade_counts: GradeCounts,
pub is_ranked: bool,
pub level: UserLevel,
pub max_combo: u32,
pub playcount: u32,
pub playtime: u32,
pub pp: f32,
pub ranked_score: u64,
pub replays_watched: u32,
pub total_hits: u64,
pub total_score: u64,
}
Fields§
§accuracy: f32
Hit accuracy percentage
country_rank: Option<u32>
Current country rank according to pp
global_rank: Option<u32>
Current global rank according to pp
grade_counts: GradeCounts
Counts of grades
is_ranked: bool
Is actively ranked
level: UserLevel
The user’s level progression
max_combo: u32
Highest maximum combo
playcount: u32
Number of maps played
playtime: u32
Cumulative time played in seconds
pp: f32
Performance points
ranked_score: u64
Current ranked score
replays_watched: u32
Number of replays watched by other users
total_hits: u64
Total number of hits
total_score: u64
Total score
Trait Implementations§
source§impl Clone for UserStatistics
impl Clone for UserStatistics
source§fn clone(&self) -> UserStatistics
fn clone(&self) -> UserStatistics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UserStatistics
impl Debug for UserStatistics
source§impl<'de> Deserialize<'de> for UserStatistics
impl<'de> Deserialize<'de> for UserStatistics
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
source§impl PartialEq<UserStatistics> for UserStatistics
impl PartialEq<UserStatistics> for UserStatistics
source§fn eq(&self, other: &UserStatistics) -> bool
fn eq(&self, other: &UserStatistics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserStatistics
Auto Trait Implementations§
impl RefUnwindSafe for UserStatistics
impl Send for UserStatistics
impl Sync for UserStatistics
impl Unpin for UserStatistics
impl UnwindSafe for UserStatistics
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