pub struct ValidationResult {
pub total_policies: usize,
pub violations: Vec<Violation>,
pub error_count: usize,
}Expand description
Result object produced by Graph::validate() collecting the
set of policy violations and a quick summary count for errors
to support the CLI and tests.
Fields§
§total_policies: usizeTotal number of policies evaluated
violations: Vec<Violation>All policy violations collected during evaluation
error_count: usizeNumber of ERROR-severity violations
Implementations§
Trait Implementations§
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Source§fn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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