Struct polars_core::prelude::ArrowField
source · [−]pub struct ArrowField {
pub name: String,
pub data_type: DataType,
pub is_nullable: bool,
pub metadata: BTreeMap<String, String, Global>,
}
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: BTreeMap<String, String, Global>
Additional custom (opaque) metadata.
Implementations
Trait Implementations
sourceimpl From<&Field> for Field
impl From<&Field> for Field
sourcefn from(f: &ArrowField) -> Self
fn from(f: &ArrowField) -> Self
Converts to this type from the input type.
impl Eq for Field
impl StructuralEq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.