pub fn decode_commodity_batch(
metadata: &HashMap<String, String>,
record_batch: &RecordBatch,
) -> Result<Vec<Commodity>, EncodingError>Expand description
Decodes [Commodity] instruments from a record batch.
Not a DecodeFromRecordBatch implementation because that trait requires Into<Data>.
ยงErrors
Returns an EncodingError if the record batch cannot be decoded.