pub struct ValidationReport {
pub results: Vec<ValidationResult>,
pub summary: ValidationSummary,
}Expand description
Collection of validation results
Fields§
§results: Vec<ValidationResult>All validation results
summary: ValidationSummarySummary counts
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_result(&mut self, result: ValidationResult)
pub fn add_result(&mut self, result: ValidationResult)
Add a result to the report
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if there are any warnings
Sourcepub fn error_messages(&self) -> Vec<String>
pub fn error_messages(&self) -> Vec<String>
Get all error messages
Sourcepub fn warning_messages(&self) -> Vec<String>
pub fn warning_messages(&self) -> Vec<String>
Get all warning messages
Sourcepub fn info_messages(&self) -> Vec<String>
pub fn info_messages(&self) -> Vec<String>
Get all info messages
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
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
Source§impl<'de> Deserialize<'de> for ValidationReport
impl<'de> Deserialize<'de> for ValidationReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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