pub enum DbValue {
}
Expand description
Database values
Variants§
Boolean(bool)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Floating32(f32)
Floating64(f64)
Str(String)
Binary(Vec<u8>)
Date((i32, u8, u8))
Time((u8, u8, u8, u32))
(year, month, day)
Datetime((i32, u8, u8, u8, u8, u8, u32))
(hour, minute, second, nanosecond) Date-time types are always treated as UTC (without timezone info). The instant is represented as a (year, month, day, hour, minute, second, nanosecond) tuple.
Timestamp(i64)
Unix timestamp (seconds since epoch)
DbNull
Unsupported
Trait Implementations§
impl ComponentType for DbValue
impl Lift for DbValue
impl Lower for DbValue
Auto Trait Implementations§
impl Freeze for DbValue
impl RefUnwindSafe for DbValue
impl Send for DbValue
impl Sync for DbValue
impl Unpin for DbValue
impl UnwindSafe for DbValue
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