pub struct ValidationResult {
pub passed: bool,
pub error_count: usize,
pub warning_count: usize,
pub diagnostics: Vec<String>,
}Expand description
Result of pre-compilation validation.
Contains all validation errors, warnings, and suggestions found during validation.
Fields§
§passed: boolWhether validation passed (no errors)
error_count: usizeNumber of errors found
warning_count: usizeNumber of warnings found
diagnostics: Vec<String>All diagnostic messages (errors, warnings, hints)
Implementations§
Source§impl ValidationResult
impl ValidationResult
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if there are any errors
Sourcepub fn error_message(&self) -> String
pub fn error_message(&self) -> String
Returns a formatted error message with all diagnostics
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 moreAuto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin 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