pub struct ValidationReport {
pub domain: String,
pub errors: Vec<ValidationError>,
pub warnings: Vec<ValidationWarning>,
}Expand description
Validation report for a single domain or component.
Fields§
§domain: StringDomain identifier (e.g., “paths”, “web”, “content”, “mcp”)
errors: Vec<ValidationError>List of errors (fatal)
warnings: Vec<ValidationWarning>List of warnings (non-fatal)
Implementations§
Source§impl ValidationReport
impl ValidationReport
pub fn new(domain: impl Into<String>) -> ValidationReport
pub fn add_error(&mut self, error: ValidationError)
pub fn add_warning(&mut self, warning: ValidationWarning)
pub fn has_errors(&self) -> bool
pub fn has_warnings(&self) -> bool
pub fn is_clean(&self) -> bool
Sourcepub fn merge(&mut self, other: ValidationReport)
pub fn merge(&mut self, other: ValidationReport)
Merge another report into this one.
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
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