pub struct RecordedOutcome { /* private fields */ }Expand description
Describes whether an outcome fit the report limits and identifies its retained failures.
§Examples
use qubit_validator::{RecordedOutcome, ValidationOutcome, ValidationPath, ValidationReport};
let mut report = ValidationReport::new();
let receipt: RecordedOutcome = report.record_outcome(
0,
ValidationPath::root(),
ValidationOutcome::valid(),
)?;
assert!(receipt.complete());
assert!(receipt.failure_ids().is_empty());Implementations§
Source§impl RecordedOutcome
impl RecordedOutcome
Sourcepub const fn complete(&self) -> bool
pub const fn complete(&self) -> bool
Returns whether every part of the outcome fit the configured limits.
This reports collection completeness, not validation success. It is
false when a violation or skipped occurrence could not be retained.
Sourcepub fn failure_ids(&self) -> &[FailureId]
pub fn failure_ids(&self) -> &[FailureId]
Returns IDs for failures retained from this outcome.
Returns only failures newly retained from this outcome. Valid and skipped outcomes return an empty slice; an invalid outcome can also return an empty slice when no failure from it fit the report limit.
Trait Implementations§
Source§impl Clone for RecordedOutcome
impl Clone for RecordedOutcome
Source§impl Debug for RecordedOutcome
impl Debug for RecordedOutcome
impl Eq for RecordedOutcome
Source§impl PartialEq for RecordedOutcome
impl PartialEq for RecordedOutcome
impl StructuralPartialEq for RecordedOutcome
Auto Trait Implementations§
impl Forget for RecordedOutcome
impl Freeze for RecordedOutcome
impl RefUnwindSafe for RecordedOutcome
impl Send for RecordedOutcome
impl Sync for RecordedOutcome
impl Unpin for RecordedOutcome
impl UnsafeUnpin for RecordedOutcome
impl UnwindSafe for RecordedOutcome
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