pub struct ScoreWeight {
pub percentage: f32,
pub pp: f32,
}Fields§
§percentage: f32Percentage of the score’s pp that will be added to the user’s total pp between 0 and 100
pp: f32PP 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 duplicate 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 for ScoreWeight
impl PartialEq for ScoreWeight
Source§impl Serialize for ScoreWeight
impl Serialize for ScoreWeight
impl Copy for ScoreWeight
impl StructuralPartialEq for ScoreWeight
Auto Trait Implementations§
impl Freeze for ScoreWeight
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