pub struct CheckOutput { /* private fields */ }Expand description
Output evidence from one selected, enabled, applicable check.
The shared evaluation boundary derives coverage from completed scopes and
gaps and reports malformed evidence through EvaluationError.
Implementations§
Source§impl CheckOutput
impl CheckOutput
Sourcepub fn from_coverage(
findings: Vec<Finding>,
evaluated_scopes: Vec<EvaluationScope>,
gaps: Vec<CoverageGap>,
) -> Self
pub fn from_coverage( findings: Vec<Finding>, evaluated_scopes: Vec<EvaluationScope>, gaps: Vec<CoverageGap>, ) -> Self
Collect findings, completed scopes, and coverage gaps through the one check-output construction path.
Classification and validation happen when evaluate_checks projects
this evidence into a CheckEvaluation.
Sourcepub fn with_engine_prediction(self, prediction: EnginePredictionV1) -> Self
pub fn with_engine_prediction(self, prediction: EnginePredictionV1) -> Self
Attach one engine-prediction record to this check output.
The shared evaluation boundary validates facet/scope/finding relationships after it knows the authoritative parent check id.
Sourcepub fn evaluated_scopes(&self) -> &[EvaluationScope]
pub fn evaluated_scopes(&self) -> &[EvaluationScope]
Stable identifiers for work that completed.
Sourcepub fn gaps(&self) -> &[CoverageGap]
pub fn gaps(&self) -> &[CoverageGap]
Typed reasons work did not complete.
Sourcepub const fn engine_prediction(&self) -> Option<&EnginePredictionV1>
pub const fn engine_prediction(&self) -> Option<&EnginePredictionV1>
Engine-prediction facets emitted by this check, when any.
Trait Implementations§
Source§impl Clone for CheckOutput
impl Clone for CheckOutput
Source§fn clone(&self) -> CheckOutput
fn clone(&self) -> CheckOutput
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 CheckOutput
impl RefUnwindSafe for CheckOutput
impl Send for CheckOutput
impl Sync for CheckOutput
impl Unpin for CheckOutput
impl UnsafeUnpin for CheckOutput
impl UnwindSafe for CheckOutput
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