pub enum VariantValue {
Show 22 variants
Null,
Boolean(bool),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Float(f32),
Double(f64),
Decimal4(VariantDecimal4),
Decimal8(VariantDecimal8),
Decimal16(VariantDecimal16),
String(String),
Binary(Vec<u8>),
Date(NaiveDate),
Time(NaiveTime),
TimestampMicros(DateTime<Utc>),
TimestampNtzMicros(NaiveDateTime),
TimestampNanos(DateTime<Utc>),
TimestampNtzNanos(NaiveDateTime),
Uuid(Uuid),
List(Vec<VariantValue>),
Object(BTreeMap<String, VariantValue>),
}Expand description
An owned VARIANT value whose types mirror the Parquet variant encoding.
The arms match the encoding’s type set one for one.
Variants§
Null
The null variant, which is a present value, not a SQL NULL.
Boolean(bool)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Float(f32)
Double(f64)
Decimal4(VariantDecimal4)
Decimal8(VariantDecimal8)
Decimal16(VariantDecimal16)
String(String)
Binary(Vec<u8>)
Date(NaiveDate)
Time(NaiveTime)
TimestampMicros(DateTime<Utc>)
A zoned timestamp, microsecond precision.
TimestampNtzMicros(NaiveDateTime)
An unzoned timestamp, microsecond precision.
TimestampNanos(DateTime<Utc>)
A zoned timestamp, nanosecond precision.
TimestampNtzNanos(NaiveDateTime)
An unzoned timestamp, nanosecond precision.
Uuid(Uuid)
List(Vec<VariantValue>)
Object(BTreeMap<String, VariantValue>)
Object field names are strings: that is what the encoding permits.
Trait Implementations§
Source§impl Clone for VariantValue
impl Clone for VariantValue
Source§impl Debug for VariantValue
impl Debug for VariantValue
Source§impl PartialEq for VariantValue
impl PartialEq for VariantValue
impl StructuralPartialEq for VariantValue
Auto Trait Implementations§
impl Forget for VariantValue
impl Freeze for VariantValue
impl RefUnwindSafe for VariantValue
impl Send for VariantValue
impl Sync for VariantValue
impl Unpin for VariantValue
impl UnsafeUnpin for VariantValue
impl UnwindSafe for VariantValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more