fn encode_fields<'avro, 'rw>( fields_with_datums: impl Iterator<Item = ((&'rw str, &'rw DataType), DatumRef<'rw>)>, schema: &'avro Schema, ) -> Result<Record<'avro>, FieldEncodeError>