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§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)