nautilus_serialization::arrow

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>

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 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§