pub enum ValueType {
Show 31 variants
Boolean,
Float4,
Float8,
Int1,
Int2,
Int4,
Int8,
Int16,
Utf8,
Uint1,
Uint2,
Uint4,
Uint8,
Uint16,
Date,
DateTime,
Time,
Duration,
IdentityId,
Uuid4,
Uuid7,
Blob,
Int,
Uint,
Decimal,
Option(Box<ValueType>),
Any,
DictionaryId,
List(Box<ValueType>),
Record(Vec<(String, ValueType)>),
Tuple(Vec<ValueType>),
}Variants§
Boolean
Float4
Float8
Int1
Int2
Int4
Int8
Int16
Utf8
Uint1
Uint2
Uint4
Uint8
Uint16
Date
DateTime
Time
Duration
IdentityId
Uuid4
Uuid7
Blob
Int
Uint
Decimal
Option(Box<ValueType>)
Any
DictionaryId
List(Box<ValueType>)
Record(Vec<(String, ValueType)>)
Tuple(Vec<ValueType>)
Implementations§
Source§impl ValueType
impl ValueType
pub fn super_type_of<I>(iter: I) -> ValueTypewhere
I: IntoIterator<Item = ValueType>,
Source§impl ValueType
impl ValueType
pub fn list_of(ty: ValueType) -> Self
pub fn is_number(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_signed_integer(&self) -> bool
pub fn is_unsigned_integer(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_floating_point(&self) -> bool
pub fn is_utf8(&self) -> bool
pub fn is_temporal(&self) -> bool
pub fn is_uuid(&self) -> bool
pub fn is_blob(&self) -> bool
pub fn is_option(&self) -> bool
pub fn inner_type(&self) -> &ValueType
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ValueType
impl<'de> Deserialize<'de> for ValueType
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 ValueType
impl Ord for ValueType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueType
impl UnwindSafe for ValueType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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