Skip to main content

decode_currency_pair_batch

Function decode_currency_pair_batch 

Source
pub fn decode_currency_pair_batch(
    metadata: &HashMap<String, String>,
    record_batch: &RecordBatch,
) -> Result<Vec<CurrencyPair>, EncodingError>
Expand description

Helper function to decode CurrencyPair from RecordBatch (Cannot implement DecodeFromRecordBatch trait due to Into<Data> bound)

ยงErrors

Returns an EncodingError if the RecordBatch cannot be decoded.