pub fn append_record_fields( source: &mut String, function: &str, path_tail: &str, fields: &[FieldInit<'_>], ) -> Result<(), Box<dyn Error>>