Skip to main content

create_rule_by_name

Function create_rule_by_name 

Source
pub fn create_rule_by_name(name: &str, config: &Config) -> Option<Box<dyn Rule>>
Expand description

Creates a single rule by name with the given config

This enables automatic inline config support - the engine can recreate any rule with a merged config without per-rule changes.

Returns None if the rule name is not found.