pub fn parse_rule(yaml: &str) -> Result<Rule, RuleError>
Parse a single YAML string into a Rule, validating required fields.