pub struct ScoreExplanation {
pub contributions: Vec<(String, f64)>,
pub total: u8,
pub critical_pin: bool,
}Expand description
A transparent breakdown of how the project score was computed.
Fields§
§contributions: Vec<(String, f64)>(label, points) contributions, largest first.
total: u8§critical_pin: boolTrue when a critical advisory pinned the score to 100.
Trait Implementations§
Source§impl Clone for ScoreExplanation
impl Clone for ScoreExplanation
Source§fn clone(&self) -> ScoreExplanation
fn clone(&self) -> ScoreExplanation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScoreExplanation
impl RefUnwindSafe for ScoreExplanation
impl Send for ScoreExplanation
impl Sync for ScoreExplanation
impl Unpin for ScoreExplanation
impl UnsafeUnpin for ScoreExplanation
impl UnwindSafe for ScoreExplanation
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