pub trait RuleState {
// Required method
fn get_rule_state(&self) -> &RuleStateBase;
// Provided methods
fn severity(&self) -> i32 { ... }
fn related_rules(&self) -> HashMap<&String, &Vec<String>> { ... }
fn related_unique_ids(&self) -> HashMap<&String, &Vec<String>> { ... }
}
Expand description
Defines the interface for a rule state.
§To implement by the trait user.
get_rule_state
- Returns the base state of the rule. To be implemented by the concrete rule state.
Required Methods§
Sourcefn get_rule_state(&self) -> &RuleStateBase
fn get_rule_state(&self) -> &RuleStateBase
Returns the base state of the rule. To be implemented by the concrete rule state.
Provided Methods§
Returns a map of related unique ids. The key is the group name and the value is a vector of unique ids.
Returns a map of related unique ids. The key is the group name and the value is a vector of unique ids.