pub enum Value {
}Variants§
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Int128(i128)
Float(SerializableOrderedF64)
String(Arc<str>)
Bool(bool)
Date32(i32)
Decimal128(i128)
Serialized(Arc<[u8]>)
Implementations§
Source§impl Value
The as_*() functions do not perform conversions. This is unlike the as
keyword in rust.
impl Value
The as_*() functions do not perform conversions. This is unlike the as
keyword in rust.
If you want to perform conversions, use the to_*() functions.
pub fn as_u8(&self) -> u8
pub fn as_u16(&self) -> u16
pub fn as_u32(&self) -> u32
pub fn as_u64(&self) -> u64
pub fn as_i8(&self) -> i8
pub fn as_i16(&self) -> i16
pub fn as_i32(&self) -> i32
pub fn as_i64(&self) -> i64
pub fn as_i128(&self) -> i128
pub fn as_f64(&self) -> f64
pub fn as_bool(&self) -> bool
pub fn as_str(&self) -> Arc<str>
pub fn as_slice(&self) -> Arc<[u8]>
pub fn convert_to_type(&self, typ: DataType) -> Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Value
impl Ord for Value
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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