Skip to main content

decode_betting_instrument_batch

Function decode_betting_instrument_batch 

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

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

ยงErrors

Returns an EncodingError if the RecordBatch cannot be decoded.