pub fn transform_record( rule: &RuleFile, record: &Value, context: Option<&Value>, ) -> Result<Option<Value>, TransformError>