pub enum Value {
Bool(Option<bool>),
I16(Option<i16>),
I32(Option<i32>),
I64(Option<i64>),
F32(Option<f32>),
F64(Option<f64>),
Text(Option<String>),
DateTimeUtc(Option<DateTime<Utc>>),
NaiveDateTime(Option<NaiveDateTime>),
NaiveDate(Option<NaiveDate>),
NaiveTime(Option<NaiveTime>),
}Expand description
A raw value to compare against or store, in a database-agnostic form.
Every variant holds an Option, so an absent value (NULL) keeps its type.
Variants§
Bool(Option<bool>)
A boolean.
I16(Option<i16>)
A 16-bit integer.
I32(Option<i32>)
A 32-bit integer.
I64(Option<i64>)
A 64-bit integer.
F32(Option<f32>)
A 32-bit float.
F64(Option<f64>)
A 64-bit float.
Text(Option<String>)
Text.
DateTimeUtc(Option<DateTime<Utc>>)
A UTC date-time.
NaiveDateTime(Option<NaiveDateTime>)
A date-time without a time zone.
NaiveDate(Option<NaiveDate>)
A date.
NaiveTime(Option<NaiveTime>)
A time of day.
Trait Implementations§
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 UnsafeUnpin 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