pub struct Field {
pub name: String,
pub data_type: DataType,
pub is_nullable: bool,
pub metadata: Metadata,
}
Expand description
Represents Arrow’s metadata of a “column”.
A Field
is the closest representation of the traditional “column”: a logical type
(DataType
) with a name and nullability.
A Field has optional Metadata
that can be used to annotate the field with custom metadata.
Almost all IO in this crate uses Field
to represent logical information about the data
to be serialized.
Fields§
§name: String
Its name
data_type: DataType
Its logical DataType
is_nullable: bool
Its nullability
metadata: Metadata
Additional custom (opaque) metadata.
Implementations§
Trait Implementations§
source§impl PartialEq for Field
impl PartialEq for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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