Struct rosu_v2::model::score::ScoreWeight
source · pub struct ScoreWeight {
pub percentage: f32,
pub pp: f32,
}
Fields§
§percentage: f32
Percentage of the score’s pp that will be added to the user’s total pp between 0 and 100
pp: f32
PP after taking the percentage of the score’s raw pp
Trait Implementations§
source§impl Clone for ScoreWeight
impl Clone for ScoreWeight
source§fn clone(&self) -> ScoreWeight
fn clone(&self) -> ScoreWeight
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 ScoreWeight
impl Debug for ScoreWeight
source§impl<'de> Deserialize<'de> for ScoreWeight
impl<'de> Deserialize<'de> for ScoreWeight
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<ScoreWeight> for ScoreWeight
impl PartialEq<ScoreWeight> for ScoreWeight
source§fn eq(&self, other: &ScoreWeight) -> bool
fn eq(&self, other: &ScoreWeight) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScoreWeight
impl StructuralPartialEq for ScoreWeight
Auto Trait Implementations§
impl RefUnwindSafe for ScoreWeight
impl Send for ScoreWeight
impl Sync for ScoreWeight
impl Unpin for ScoreWeight
impl UnwindSafe for ScoreWeight
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