pub struct ValidationReport {
pub errors: Vec<ValidationError>,
}Expand description
Validation report
Fields§
§errors: Vec<ValidationError>Validation errors and warnings
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there are any errors
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Count errors
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Count warnings
Trait Implementations§
Source§impl Debug for ValidationReport
impl Debug for ValidationReport
Source§impl Default for ValidationReport
impl Default for ValidationReport
Source§fn default() -> ValidationReport
fn default() -> ValidationReport
Returns the “default value” for a type. Read more
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