pub fn load_rules(toml_str: &str) -> Result<CustomRulesFile, String>
Load custom rules from a TOML string.