pub struct ValidationReport {
pub passed: bool,
pub issues: Vec<ValidationIssue>,
pub summary: ValidationSummary,
}Expand description
Result of validating content
Fields§
§passed: boolWhether validation passed (no errors/critical issues)
issues: Vec<ValidationIssue>All issues found
summary: ValidationSummarySummary counts by severity
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_issue(&mut self, issue: ValidationIssue)
pub fn add_issue(&mut self, issue: ValidationIssue)
Add an issue to the report
Sourcepub fn merge(&mut self, other: ValidationReport)
pub fn merge(&mut self, other: ValidationReport)
Merge another report into this one
Sourcepub fn issues_by_severity(&self, severity: Severity) -> Vec<&ValidationIssue>
pub fn issues_by_severity(&self, severity: Severity) -> Vec<&ValidationIssue>
Get issues by severity
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Check if there are any failures
Sourcepub fn total_issues(&self) -> usize
pub fn total_issues(&self) -> usize
Total issue 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 · 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§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 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