pub struct AuditScore {
pub model: String,
pub value: u8,
pub label: ScoreLabel,
pub authoritative: bool,
pub dimensions: ScoreDimensions,
pub worst_tier: Option<RuleTier>,
pub applied_ceiling: Option<u8>,
pub projected_after_top_three: Option<u8>,
pub projected_rule_ids: Vec<String>,
pub withheld_rule_ids: Vec<String>,
}Fields§
§model: String§value: u8§label: ScoreLabel§dimensions: ScoreDimensions§worst_tier: Option<RuleTier>Worst tier observed across all dimensions, or null when no scored
rule is catalogued.
applied_ceiling: Option<u8>Global cap effectively applied to value, or null when the worst tier
imposes none. Published so that a score drop can be explained without
recomputation.
projected_after_top_three: Option<u8>§projected_rule_ids: Vec<String>§withheld_rule_ids: Vec<String>Rules that fired here and that the corpus adjudicated at no true
positive, in descending cost order, hence absent from
projected_rule_ids whatever their volume.
Published so the omission reads as a measurement rather than a defect: the rule with the most findings is often the one the corpus found most often wrong, and a list that silently drops it is impossible to trust.
Implementations§
Source§impl AuditScore
impl AuditScore
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Whether every published member still follows from the others.
Audit’s Serialize refuses a block that fails this, so each clause is the one thing it
names rather than a term in one long conjunction: when it refuses, the caller can be told
which fact stopped holding.
Trait Implementations§
Source§impl Clone for AuditScore
impl Clone for AuditScore
Source§fn clone(&self) -> AuditScore
fn clone(&self) -> AuditScore
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuditScore
impl Debug for AuditScore
impl Eq for AuditScore
Source§impl PartialEq for AuditScore
impl PartialEq for AuditScore
Source§impl Serialize for AuditScore
impl Serialize for AuditScore
impl StructuralPartialEq for AuditScore
Auto Trait Implementations§
impl Freeze for AuditScore
impl RefUnwindSafe for AuditScore
impl Send for AuditScore
impl Sync for AuditScore
impl Unpin for AuditScore
impl UnsafeUnpin for AuditScore
impl UnwindSafe for AuditScore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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