pub trait Rule: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn severity(&self) -> Severity;
fn check(&self, graph: &Graph, config: &Config) -> Vec<Violation>;
}Expand description
Trait for validation rules.
pub trait Rule: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn severity(&self) -> Severity;
fn check(&self, graph: &Graph, config: &Config) -> Vec<Violation>;
}Trait for validation rules.