pub enum Value {
Null,
Integer(i64),
Real(f64),
Text(String),
Blob(Vec<u8>),
}Expand description
A bound parameter or literal.
SQLite has exactly these storage classes. Richer Rust types are flattened
through From implementations: booleans become 0 / 1, dates and
times become ISO 8601 text, UUIDs become hyphenated text, JSON becomes its
textual form and decimals become their exact decimal text.
Variants§
Null
SQL NULL.
Integer(i64)
A 64-bit signed integer.
Real(f64)
A 64-bit float.
Text(String)
UTF-8 text.
Blob(Vec<u8>)
Raw bytes.
Implementations§
Trait Implementations§
Source§impl From<NaiveDateTime> for Value
Available on crate feature with-chrono only.
impl From<NaiveDateTime> for Value
Available on crate feature
with-chrono only.Source§fn from(v: NaiveDateTime) -> Self
fn from(v: NaiveDateTime) -> Self
Converts to this type from the input type.
Source§impl From<Value> for SelectItem
impl From<Value> for SelectItem
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