pub struct UserStats<'a> {Show 13 fields
pub user_id: i32,
pub online_status: u8,
pub description: CowStr<'a>,
pub beatmap_md5: CowStr<'a>,
pub mods: u32,
pub mode: u8,
pub beatmap_id: i32,
pub ranked_score: i64,
pub accuracy: f32,
pub playcount: i32,
pub total_score: i64,
pub rank: i32,
pub pp: i16,
}
Expand description
Calculate the byte length of
self after being converted into a bancho packet,
which is used to allocate
Vec space in advance to improve performance.
Read more
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Converts to this type from the input type.
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.