Trait ArrowSchemaProvider

Source
pub trait ArrowSchemaProvider {
    // Required method
    fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema;

    // Provided method
    fn get_schema_map() -> HashMap<String, String> { ... }
}
Expand description

Provides Apache Arrow schema definitions for data types.

Required Methods§

Source

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Returns the Arrow schema for this type with optional metadata.

Provided Methods§

Source

fn get_schema_map() -> HashMap<String, String>

Returns a map of field names to their Arrow data types.

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

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for IndexPriceUpdate

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for InstrumentClose

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for MarkPriceUpdate

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for OrderBookDelta

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for OrderBookDepth10

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for QuoteTick

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Source§

impl ArrowSchemaProvider for TradeTick

Source§

fn get_schema(metadata: Option<HashMap<String, String>>) -> Schema

Implementors§