pub struct ValidationReport {
pub errors: HashMap<String, Vec<String>>,
pub warnings: HashMap<String, Vec<String>>,
pub info: HashMap<String, Vec<String>>,
}Expand description
Comprehensive validation report.
Fields§
§errors: HashMap<String, Vec<String>>Critical errors.
warnings: HashMap<String, Vec<String>>Non-critical warnings.
info: HashMap<String, Vec<String>>Informational messages.
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_errors(&mut self, category: &str, errors: Vec<String>)
pub fn add_errors(&mut self, category: &str, errors: Vec<String>)
Add errors under a category.
Sourcepub fn add_warnings(&mut self, category: &str, warnings: Vec<String>)
pub fn add_warnings(&mut self, category: &str, warnings: Vec<String>)
Add warnings under a category.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether there are any errors.
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a human-readable summary.
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 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