pub struct CategoryScore {Show 14 fields
pub category: Category,
pub id: String,
pub name: String,
pub weight: f64,
pub note: String,
pub score: Option<f64>,
pub weighted_contribution: Option<f64>,
pub finding_count: usize,
pub enforced: usize,
pub present: usize,
pub partial: usize,
pub missing: usize,
pub unknown: usize,
pub not_applicable: usize,
}Expand description
Score for a single hygiene category.
Fields§
§category: Category§id: String§name: String§weight: f64Rubric weight as a fraction of the overall score (e.g. 0.20 = 20%).
note: StringShort rubric rationale.
score: Option<f64>0–100 score (None when all findings are NotApplicable).
weighted_contribution: Option<f64>Contribution to overall score when this category participates (score * renormalized_weight).
finding_count: usize§enforced: usize§present: usize§partial: usize§missing: usize§unknown: usize§not_applicable: usizeTrait Implementations§
Source§impl Clone for CategoryScore
impl Clone for CategoryScore
Source§fn clone(&self) -> CategoryScore
fn clone(&self) -> CategoryScore
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 moreSource§impl Debug for CategoryScore
impl Debug for CategoryScore
Source§impl<'de> Deserialize<'de> for CategoryScore
impl<'de> Deserialize<'de> for CategoryScore
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 CategoryScore
impl RefUnwindSafe for CategoryScore
impl Send for CategoryScore
impl Sync for CategoryScore
impl Unpin for CategoryScore
impl UnsafeUnpin for CategoryScore
impl UnwindSafe for CategoryScore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more