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