pub struct ValidationLimits {
pub max_violations: Option<usize>,
pub max_skipped: Option<usize>,
}Expand description
Explicit bounds applied while collecting a validation report.
These limits bound retained violation and skipped-entry counts only. They do not bound input sizes, validation work, dependency path sizes, the number of prerequisite references in an outcome, or memory already used to construct an outcome. Applications should enforce those resource policies at their input and execution boundaries.
§Examples
use qubit_validator::ValidationLimits;
let limits = ValidationLimits {
max_violations: Some(10),
max_skipped: None,
};
assert_eq!(limits.max_violations, Some(10));Fields§
§max_violations: Option<usize>Maximum retained original violations; prerequisite references consume no
additional capacity. None means unlimited.
max_skipped: Option<usize>Maximum skipped entries; None means unlimited.
Trait Implementations§
Source§impl Clone for ValidationLimits
impl Clone for ValidationLimits
impl Copy for ValidationLimits
Source§impl Debug for ValidationLimits
impl Debug for ValidationLimits
Source§impl Default for ValidationLimits
impl Default for ValidationLimits
impl Eq for ValidationLimits
Source§impl PartialEq for ValidationLimits
impl PartialEq for ValidationLimits
impl StructuralPartialEq for ValidationLimits
Auto Trait Implementations§
impl Forget for ValidationLimits
impl Freeze for ValidationLimits
impl RefUnwindSafe for ValidationLimits
impl Send for ValidationLimits
impl Sync for ValidationLimits
impl Unpin for ValidationLimits
impl UnsafeUnpin for ValidationLimits
impl UnwindSafe for ValidationLimits
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