pub struct ValidationReport {
pub errors: Vec<ValidationError>,
pub warnings: Vec<ValidationWarning>,
}Expand description
Report of validation results
Fields§
§errors: Vec<ValidationError>Validation errors (severe issues)
warnings: Vec<ValidationWarning>Validation warnings (potential issues)
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_error(&mut self, error: ValidationError)
pub fn add_error(&mut self, error: ValidationError)
Add an error to the report
Sourcepub fn add_warning(&mut self, warning: ValidationWarning)
pub fn add_warning(&mut self, warning: ValidationWarning)
Add a warning to the report
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if the report has any errors
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if the report has any warnings
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Count the number of errors
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Count the number of warnings
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