nautilus_serialization::arrow

Trait EncodeToRecordBatch

Source
pub trait EncodeToRecordBatch
where Self: Sized + ArrowSchemaProvider,
{ // Required method fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>; }

Required Methods§

Source

fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>

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 EncodeToRecordBatch for Bar

Source§

fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>

Source§

impl EncodeToRecordBatch for OrderBookDelta

Source§

fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>

Source§

impl EncodeToRecordBatch for OrderBookDepth10

Source§

fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>

Source§

impl EncodeToRecordBatch for QuoteTick

Source§

fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>

Source§

impl EncodeToRecordBatch for TradeTick

Source§

fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>

Implementors§