pub struct ValidationResult {
pub diagnostics: Vec<ValidationDiagnostic>,
}Expand description
The result of validating a plugin or marketplace.
Fields§
§diagnostics: Vec<ValidationDiagnostic>Implementations§
Source§impl ValidationResult
impl ValidationResult
pub fn new() -> Self
pub fn push(&mut self, diagnostic: ValidationDiagnostic)
pub fn has_errors(&self) -> bool
pub fn error_count(&self) -> usize
pub fn warning_count(&self) -> usize
pub fn merge(&mut self, other: ValidationResult)
Trait Implementations§
Source§impl Debug for ValidationResult
impl Debug for ValidationResult
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