pub enum ValueRef<'a> {
Show 26 variants
Bool(bool),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
UInt128(u128),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Int128(i128),
String(&'a [u8]),
Float32(f32),
Float64(f64),
Date(u16),
DateTime(u32, Tz),
DateTime64(i64, &'a (u32, Tz)),
Nullable(Either<&'static SqlType, Box<ValueRef<'a>>>),
Array(&'static SqlType, Arc<Vec<ValueRef<'a>>>),
Decimal(Decimal),
Ipv4([u8; 4]),
Ipv6([u8; 16]),
Uuid([u8; 16]),
Enum16(Vec<(String, i16)>, Enum16),
Enum8(Vec<(String, i8)>, Enum8),
Map(&'static SqlType, &'static SqlType, Arc<HashMap<ValueRef<'a>, ValueRef<'a>>>),
}Variants§
Bool(bool)
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
UInt128(u128)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Int128(i128)
String(&'a [u8])
Float32(f32)
Float64(f64)
Date(u16)
DateTime(u32, Tz)
DateTime64(i64, &'a (u32, Tz))
Nullable(Either<&'static SqlType, Box<ValueRef<'a>>>)
Array(&'static SqlType, Arc<Vec<ValueRef<'a>>>)
Decimal(Decimal)
Ipv4([u8; 4])
Ipv6([u8; 16])
Uuid([u8; 16])
Enum16(Vec<(String, i16)>, Enum16)
Enum8(Vec<(String, i8)>, Enum8)
Map(&'static SqlType, &'static SqlType, Arc<HashMap<ValueRef<'a>, ValueRef<'a>>>)
Implementations§
Trait Implementations§
impl<'a> Eq for ValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValueRef<'a>
impl<'a> RefUnwindSafe for ValueRef<'a>
impl<'a> Send for ValueRef<'a>
impl<'a> Sync for ValueRef<'a>
impl<'a> Unpin for ValueRef<'a>
impl<'a> UnwindSafe for ValueRef<'a>
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> 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