Skip to main content

decode_option_contract_batch

Function decode_option_contract_batch 

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

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

ยงErrors

Returns an EncodingError if the RecordBatch cannot be decoded.