SchemaMeta

Trait SchemaMeta 

Source
pub trait SchemaMeta: Record {
    // Required method
    fn fields() -> Vec<Field>;

    // Provided methods
    fn metadata() -> HashMap<String, String> { ... }
    fn schema() -> Arc<Schema> { ... }
}
Expand description

Arrow runtime schema metadata for a top-level Record.

Required Methods§

Source

fn fields() -> Vec<Field>

Top-level fields: (name, data_type, nullable) represented as Fields.

Provided Methods§

Source

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

Optional top-level schema key/value metadata.

Source

fn schema() -> Arc<Schema>

Construct an Arc<arrow_schema::Schema> from fields().

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.

Implementors§