Trait DecodeFromRecordBatch

Source
pub trait DecodeFromRecordBatch
where Self: Sized + Into<Data> + ArrowSchemaProvider,
{ // Required method fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>; }

Required Methods§

Source

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Decodes a RecordBatch into a vector of values of the implementing type, using the provided metadata.

§Errors

Returns an EncodingError if the decoding fails.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DecodeFromRecordBatch for Bar

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for IndexPriceUpdate

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for InstrumentClose

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for MarkPriceUpdate

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for OrderBookDelta

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for OrderBookDepth10

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for QuoteTick

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Source§

impl DecodeFromRecordBatch for TradeTick

Source§

fn decode_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Self>, EncodingError>

Implementors§