pub struct ValidationReport {
pub errors: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Validation report.
Fields§
§errors: Vec<String>Validation errors.
warnings: Vec<String>Validation warnings.
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_warning(&mut self, warning: String)
pub fn add_warning(&mut self, warning: String)
Add a warning.
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Get error count.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Get warning count.
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 UnsafeUnpin 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