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: StringIts name
data_type: DataTypeIts logical DataType
is_nullable: boolIts nullability
metadata: BTreeMap<String, String, Global>Additional custom (opaque) metadata.
Implementations§
Trait Implementations§
source§impl From<&Field> for Field
impl From<&Field> for Field
source§fn from(f: &ArrowField) -> Self
fn from(f: &ArrowField) -> Self
Converts to this type from the input type.
source§impl PartialEq<Field> for Field
impl PartialEq<Field> for Field
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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.