pub enum Value<'a> {
}
Expand description
This enum represents a value
Variants
Null
null representation
Ident(&'a str)
Representation of an identifier, e.g. a column. This variant will not be escaped, so do not pass unchecked data to it.
Column
Representation of a column name with an optional table name
String(&'a str)
String representation
I64(i64)
i64 representation
I32(i32)
i32 representation
I16(i16)
i16 representation
Bool(bool)
Bool representation
F64(f64)
f64 representation
F32(f32)
f32 representation
Binary(&'a [u8])
binary representation
NaiveTime(NaiveTime)
Naive Time representation
NaiveDate(NaiveDate)
Naive Date representation
NaiveDateTime(NaiveDateTime)
Naive DateTime representation
Trait Implementations
sourceimpl From<NaiveDateTime> for Value<'static>
impl From<NaiveDateTime> for Value<'static>
sourcefn from(value: NaiveDateTime) -> Self
fn from(value: NaiveDateTime) -> Self
Converts to this type from the input type.
impl<'a> Copy for Value<'a>
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more