1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// =============================================================================
// Copyright (c) 2025 - 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Bounds applied while collecting validation results.
/// 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));
/// ```