Validator

Trait Validator 

Source
pub trait Validator {
    // Required methods
    fn validate(&self, file: &VaultFile) -> ValidationReport;
    fn name(&self) -> &str;
}
Expand description

Trait for content validators

Required Methods§

Source

fn validate(&self, file: &VaultFile) -> ValidationReport

Validate content and return a report

Source

fn name(&self) -> &str

Name of this validator

Implementors§