pub struct ValidationReport { /* private fields */ }Expand description
Detailed validation report
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_warning(&mut self, field: &str, message: String)
pub fn add_warning(&mut self, field: &str, message: String)
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_message(&self) -> String
pub fn error_message(&self) -> String
Get a formatted error message
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 · 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 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