pub struct Schema {
pub fields: Vec<Field>,
pub metadata: BTreeMap<String, String>,
}Expand description
§Schema
Schema struct supporting RecordBatch construction for Arrow FFI compatibility only.
§Usage
- In
Minarrow, preferFieldArrayfor typical use, as it holdsFielddirectly. - This type usage resides in the FFI module. A dedicated schema abstraction is otherwise
not utilised within this crate, as the same field definitions are embedded
within the
Tablestructure, to avoid layered indirection. - You can construct it manually for custom FFI scenarios: see examples/apache_arrow_ffi.
Fields§
§fields: Vec<Field>§metadata: BTreeMap<String, String>Implementations§
Trait Implementations§
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more