pub struct ScoreComponent {
pub name: &'static str,
pub weight: f64,
pub raw: f64,
pub normalized: f64,
pub weighted: f64,
pub explanation: Option<String>,
}Expand description
One component of the impact score breakdown.
Fields§
§name: &'static str§weight: f64§raw: f64§normalized: f64§weighted: f64§explanation: Option<String>Trait Implementations§
Source§impl Clone for ScoreComponent
impl Clone for ScoreComponent
Source§fn clone(&self) -> ScoreComponent
fn clone(&self) -> ScoreComponent
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 ScoreComponent
impl Debug for ScoreComponent
Auto Trait Implementations§
impl Freeze for ScoreComponent
impl RefUnwindSafe for ScoreComponent
impl Send for ScoreComponent
impl Sync for ScoreComponent
impl Unpin for ScoreComponent
impl UnsafeUnpin for ScoreComponent
impl UnwindSafe for ScoreComponent
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