Skip to main content

source_for_rule

Function source_for_rule 

Source
pub fn source_for_rule(rule_id: &str) -> RuleOrigin
Expand description

Looks up the RuleOrigin for a rule ID from the registry. Panics if the rule is not registered - every built-in rule must be in the registry. For custom/guard rules (not in the registry), callers must set source directly.