pub fn from_record_batch<'de, T: Deserialize<'de>>(
record_batch: &'de RecordBatch,
) -> Result<T>Expand description
Deserialize items from a record batch (requires one of the arrow-*
features)
The type should be a list of records (e.g., a vector of structs). To
deserialize items encoding single values consider the
Items wrapper.
use serde::Deserialize;
#[derive(Deserialize)]
struct Record {
a: Option<f32>,
b: u64,
}
let items: Vec<Record> = serde_arrow::from_record_batch(&record_batch)?;