pub struct ValidationReport {
pub results: Vec<ValidationResult>,
pub overall_valid: bool,
}
Expand description
Collection of validation results
Fields§
§results: Vec<ValidationResult>
§overall_valid: bool
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_result(&mut self, result: ValidationResult)
pub fn add_result(&mut self, result: ValidationResult)
Add a validation result
Sourcepub fn failure_count(&self) -> usize
pub fn failure_count(&self) -> usize
Get the number of failed validations
Sourcepub fn get_failures(&self) -> Vec<&ValidationResult>
pub fn get_failures(&self) -> Vec<&ValidationResult>
Get all failed validation results
Trait Implementations§
Source§impl Debug for ValidationReport
impl Debug for ValidationReport
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnwindSafe for ValidationReport
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