pub struct HealthScore {
pub formula_version: u32,
pub score: f64,
pub grade: &'static str,
pub penalties: HealthScorePenalties,
}Expand description
Overall project health score: 100 minus capped per-category penalties.
Fields§
§formula_version: u32Score formula version; see HEALTH_SCORE_FORMULA_VERSION.
score: f64Health score in [0, 100]; higher is healthier.
grade: &'static strLetter grade from letter_grade (A>=85, B>=70, C>=55, D>=40, F<40).
penalties: HealthScorePenaltiesPer-component penalty breakdown.
Trait Implementations§
Source§impl Clone for HealthScore
impl Clone for HealthScore
Source§impl Debug for HealthScore
impl Debug for HealthScore
Source§impl<'de> Deserialize<'de> for HealthScore
impl<'de> Deserialize<'de> for HealthScore
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
Auto Trait Implementations§
impl Freeze for HealthScore
impl RefUnwindSafe for HealthScore
impl Send for HealthScore
impl Sync for HealthScore
impl Unpin for HealthScore
impl UnsafeUnpin for HealthScore
impl UnwindSafe for HealthScore
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