pub enum SqlValue {
Null,
Integer(i64),
Real(f64),
Text(Vec<u8>),
Blob(Vec<u8>),
}Expand description
A value SQLite stores.
Variants§
Null
NULL.
Integer(i64)
An integer.
Real(f64)
A floating-point number.
Text(Vec<u8>)
Text, as the bytes SQLite stores, which may not be valid UTF-8.
Blob(Vec<u8>)
A blob.
Implementations§
Source§impl SqlValue
impl SqlValue
Sourcepub fn as_value_ref(&self) -> ValueRef<'_>
pub fn as_value_ref(&self) -> ValueRef<'_>
The value as SQLite reports it.
Trait Implementations§
Source§impl FromSql for SqlValue
impl FromSql for SqlValue
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
impl StructuralPartialEq for SqlValue
Auto Trait Implementations§
impl Freeze for SqlValue
impl RefUnwindSafe for SqlValue
impl Send for SqlValue
impl Sync for SqlValue
impl Unpin for SqlValue
impl UnsafeUnpin for SqlValue
impl UnwindSafe for SqlValue
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