Skip to main content

Validator

Trait Validator 

Source
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§

Source

fn name(&self) -> &'static str

Stable human-readable identifier for diagnostics / allowlisting.

Source

fn check(&self, pack: &PackManifest) -> Vec<PackValidationError>

Inspect pack and emit zero or more errors.

Implementors§