pub trait ValidationRule: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn validate(&self, adr: &Adr, report: &mut ValidationReport);
}Expand description
Trait for implementing validation rules.
Each rule should be focused and check for a specific condition.
Required Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Returns a description of what this rule checks.
Sourcefn validate(&self, adr: &Adr, report: &mut ValidationReport)
fn validate(&self, adr: &Adr, report: &mut ValidationReport)
Validates a single ADR, appending any issues to the report.