pub struct ValidationResult {
pub file_path: String,
pub issues: Vec<ValidationIssue>,
pub stats: ValidationStats,
}Expand description
Result of a validation operation.
Fields§
§file_path: StringThe file that was validated
issues: Vec<ValidationIssue>All issues found during validation
stats: ValidationStatsStatistics about the validation
Implementations§
Source§impl ValidationResult
impl ValidationResult
Sourcepub fn new(
file_path: impl Into<String>,
issues: Vec<ValidationIssue>,
validation_time_ms: u64,
) -> Self
pub fn new( file_path: impl Into<String>, issues: Vec<ValidationIssue>, validation_time_ms: u64, ) -> Self
Create a new validation result.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if the validation found any errors or critical issues.
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if the validation found any issues at all.
Trait Implementations§
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Source§fn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
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 ValidationResult
impl Debug for ValidationResult
Source§impl<'de> Deserialize<'de> for ValidationResult
impl<'de> Deserialize<'de> for ValidationResult
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 ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnsafeUnpin for ValidationResult
impl UnwindSafe for ValidationResult
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