pub struct ValidationReport {
pub errors: Vec<ValidationError>,
pub warnings: Vec<ValidationWarning>,
pub checks: HashMap<ValidationCheck, ValidationResult>,
pub status: ValidationStatus,
}Expand description
Validation report containing all validation results
Fields§
§errors: Vec<ValidationError>Validation errors that prevent plugin usage
warnings: Vec<ValidationWarning>Validation warnings that should be noted but don’t prevent usage
checks: HashMap<ValidationCheck, ValidationResult>Completed validation checks
status: ValidationStatusOverall validation status
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn add_error(&mut self, error: ValidationError)
pub fn add_error(&mut self, error: ValidationError)
Add a validation error
Sourcepub fn add_warning(&mut self, warning: ValidationWarning)
pub fn add_warning(&mut self, warning: ValidationWarning)
Add a validation warning
Sourcepub fn add_check(&mut self, check: ValidationCheck, result: ValidationResult)
pub fn add_check(&mut self, check: ValidationCheck, result: ValidationResult)
Add a completed validation check
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if validation has errors
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if validation has warnings
Sourcepub fn get_errors(&self) -> &[ValidationError]
pub fn get_errors(&self) -> &[ValidationError]
Get all validation errors
Sourcepub fn get_warnings(&self) -> &[ValidationWarning]
pub fn get_warnings(&self) -> &[ValidationWarning]
Get all validation warnings
Sourcepub fn status(&self) -> ValidationStatus
pub fn status(&self) -> ValidationStatus
Get validation status
Sourcepub fn get_checks(&self) -> &HashMap<ValidationCheck, ValidationResult>
pub fn get_checks(&self) -> &HashMap<ValidationCheck, ValidationResult>
Get completed checks
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more