pub trait Rule:
Send
+ Sync
+ Debug {
// Required methods
fn id(&self) -> &str;
fn level(&self) -> Level;
fn evaluate(&self, ctx: &Context<'_>) -> Result<Vec<Violation>>;
// Provided methods
fn policy_url(&self) -> Option<&str> { ... }
fn fixer(&self) -> Option<&dyn Fixer> { ... }
}Expand description
Trait every built-in and plugin rule implements.