Skip to main content

FromRecordBatch

Derive Macro FromRecordBatch 

Source
#[derive(FromRecordBatch)]
{
    // Attributes available to this derive:
    #[column]
}
Expand description

Derive the FromRecordBatch trait for a struct.

Generates code to deserialize Arrow RecordBatch rows into typed structs.

Fields are matched by name (or #[column("name")] override). Type mismatches produce a runtime error.

§Attributes

  • #[column("name")] — maps the field to a different Arrow column name