pub trait PackValidator {
// Required methods
fn id(&self) -> &'static str;
fn applies(&self, manifest: &PackManifest) -> bool;
fn validate(&self, manifest: &PackManifest) -> Vec<Diagnostic>;
}Expand description
Validator for pack manifests that emits diagnostics.
Required Methods§
Sourcefn applies(&self, manifest: &PackManifest) -> bool
fn applies(&self, manifest: &PackManifest) -> bool
Returns true when the validator applies to the provided manifest.
Sourcefn validate(&self, manifest: &PackManifest) -> Vec<Diagnostic>
fn validate(&self, manifest: &PackManifest) -> Vec<Diagnostic>
Validates the manifest and returns diagnostics.