pub struct AuditOutcome {
pub verdict: AuditVerdict,
pub summary: AuditSummary,
pub attribution: AuditAttribution,
pub comparison: AuditComparison,
pub base_snapshot: Option<AuditKeySnapshot>,
pub base_snapshot_skipped: bool,
pub dupe_demotion_diff_source: Option<DupeDemotionDiffSource>,
pub type_aware_degrade_warning: Option<String>,
pub diff_risk: DiffRiskReport,
}Expand description
Attribution result of one audit run.
Fields§
§verdict: AuditVerdictOverall verdict.
summary: AuditSummaryPer-domain counts.
attribution: AuditAttributionIntroduced and inherited counts, and the gate.
comparison: AuditComparisonThe classification of every head finding.
base_snapshot: Option<AuditKeySnapshot>The base snapshot after the rename remap.
base_snapshot_skipped: booltrue when the head keys stood in for the base.
dupe_demotion_diff_source: Option<DupeDemotionDiffSource>Which diff decided the clone-group demotion; None when it did not
run.
type_aware_degrade_warning: Option<String>The warning of a degraded type-aware comparison, already recorded on the head analyses.
diff_risk: DiffRiskReportDiff-risk findings. Every one is introduced by the change. Empty until
run computes them, and in attribute alone.
Implementations§
Source§impl AuditOutcome
impl AuditOutcome
Sourcepub fn apply_diff_risk(&mut self, report: DiffRiskReport)
pub fn apply_diff_risk(&mut self, report: DiffRiskReport)
Store the diff-risk findings and fold their severity into the verdict:
an error finding fails the audit, a warn finding turns a pass into
a warn.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditOutcome
impl RefUnwindSafe for AuditOutcome
impl Send for AuditOutcome
impl Sync for AuditOutcome
impl Unpin for AuditOutcome
impl UnsafeUnpin for AuditOutcome
impl UnwindSafe for AuditOutcome
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> 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