pub enum Value {
Show 20 variants
Integer(i32),
BigInt(i64),
Int128(i128),
UInteger(u32),
UBigInt(u64),
UInt128(u128),
Text(String),
Enum(String),
Boolean(bool),
Float32(f32),
Float(f64),
Decimal(DecimalValue),
Blob(Vec<u8>),
Date(DateValue),
Time(TimeValue),
DateTime(DateTimeValue),
TimeWithTimeZone(TimeWithTimeZoneValue),
IntervalYearMonth(IntervalYearMonthValue),
IntervalDaySecond(IntervalDaySecondValue),
Null,
}Variants§
Integer(i32)
BigInt(i64)
Int128(i128)
UInteger(u32)
UBigInt(u64)
UInt128(u128)
Text(String)
Enum(String)
Boolean(bool)
Float32(f32)
Float(f64)
Decimal(DecimalValue)
Blob(Vec<u8>)
Date(DateValue)
Time(TimeValue)
DateTime(DateTimeValue)
TimeWithTimeZone(TimeWithTimeZoneValue)
IntervalYearMonth(IntervalYearMonthValue)
IntervalDaySecond(IntervalDaySecondValue)
Null
Implementations§
Source§impl Value
impl Value
pub fn data_type(&self) -> DataType
pub fn is_compatible_with(&self, data_type: DataType) -> bool
pub fn as_integer(&self) -> Option<i32>
pub fn as_text(&self) -> Option<String>
pub fn as_boolean(&self) -> Option<bool>
pub fn as_float(&self) -> Option<f64>
pub fn as_bigint(&self) -> Option<i64>
pub fn as_int128(&self) -> Option<i128>
pub fn as_uint(&self) -> Option<u32>
pub fn as_uint64(&self) -> Option<u64>
pub fn as_uint128(&self) -> Option<u128>
pub fn as_blob(&self) -> Option<&[u8]>
pub fn is_null(&self) -> bool
pub fn is_float_like(&self) -> bool
Trait Implementations§
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl Eq for Value
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§
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