pub enum Value {
Show 18 variants
Null,
Boolean(bool),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Float32(f32),
Float64(f64),
Decimal {
precision: u8,
scale: u8,
unscaled: i128,
},
Date(i32),
Time(i64),
Timestamp {
precision: u8,
timestamp_kind: TimestampKind,
seconds: i64,
nanos: u32,
},
String(String),
Binary(Bytes),
List(Vec<Value>),
Map(Vec<(Value, Value)>),
Struct(Vec<Value>),
Extension {
type_id: String,
value: Box<Value>,
},
}Expand description
Schema-directed dynamic value used by the cobble-table-v1 codec.
Variants§
Null
Boolean(bool)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Float32(f32)
Float64(f64)
Decimal
Date(i32)
Time(i64)
Timestamp
String(String)
Binary(Bytes)
List(Vec<Value>)
Map(Vec<(Value, Value)>)
Struct(Vec<Value>)
Extension
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl !Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
Blanket Implementations§
impl<T> Allocation for T
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> DebugAny for T
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