Skip to main content

ArrowSchema

Trait ArrowSchema 

Source
pub trait ArrowSchema {
    // Required method
    fn arrow_schema() -> Schema;
}
Available on crate feature with-arrow only.
Expand description

Apache Arrow schema for an entity.

Derived via #[derive(DeriveArrowSchema)], this lets you exchange model values with Arrow RecordBatches — see ActiveModelTrait::from_arrow / to_arrow. Requires the with-arrow feature.

Required Methods§

Source

fn arrow_schema() -> Schema

Arrow schema matching this entity’s columns.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§