Struct parquet2::schema::types::PrimitiveType
source · pub struct PrimitiveType {
pub field_info: FieldInfo,
pub logical_type: Option<PrimitiveLogicalType>,
pub converted_type: Option<PrimitiveConvertedType>,
pub physical_type: PhysicalType,
}
Expand description
The complete description of a parquet column
Fields§
§field_info: FieldInfo
The fields’ generic information
logical_type: Option<PrimitiveLogicalType>
The optional logical type
converted_type: Option<PrimitiveConvertedType>
The optional converted type
physical_type: PhysicalType
The physical type
Implementations§
source§impl PrimitiveType
impl PrimitiveType
sourcepub fn from_physical(name: String, physical_type: PhysicalType) -> Self
pub fn from_physical(name: String, physical_type: PhysicalType) -> Self
Helper method to create an optional field with no logical or converted types.
Trait Implementations§
source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrimitiveType
impl Debug for PrimitiveType
source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
source§fn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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