pub enum SqliteParam {
Null,
Int(i64),
Real(f64),
Text(Box<str>),
}Expand description
A value already converted to its SQLite storage form (toSQLiteType, §3.13):
bool→Int(0|1), json→Text(serialized), else passthrough. Carries a
distinct Null (the SQL NULL) separate from a Text("null") (a serialized
json null) — the two SQL nulls the JS keeps distinct (05 §13 Q11).
Variants§
Trait Implementations§
Source§impl Clone for SqliteParam
impl Clone for SqliteParam
Source§fn clone(&self) -> SqliteParam
fn clone(&self) -> SqliteParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqliteParam
impl Debug for SqliteParam
Auto Trait Implementations§
impl Freeze for SqliteParam
impl RefUnwindSafe for SqliteParam
impl Send for SqliteParam
impl Sync for SqliteParam
impl Unpin for SqliteParam
impl UnsafeUnpin for SqliteParam
impl UnwindSafe for SqliteParam
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