pub trait Validator {
// Required methods
fn name(&self) -> &'static str;
fn check(&self, pack: &PackManifest) -> Vec<PackValidationError>;
}Expand description
A single plan-phase validator.
Implementations run against a fully parsed manifest and return every
problem they observe — never Result, because aggregation across
validators is the point.
Required Methods§
Sourcefn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable human-readable identifier for diagnostics / allowlisting.
Sourcefn check(&self, pack: &PackManifest) -> Vec<PackValidationError>
fn check(&self, pack: &PackManifest) -> Vec<PackValidationError>
Inspect pack and emit zero or more errors.