fn validate_rule(rule: &SsrRule) -> Result<(), SsrError>
Checks for errors in a rule. e.g. the replace pattern referencing placeholders that the search pattern didn’t define.