pub enum SqlValue {
Null,
Integer(i64),
Real(f64),
Text(String),
}Expand description
A SQL value, the subset of SQLite storage classes oxilite uses.
In JSON (JavaScript drivers, D1 over HTTP) it is null, a number or a string. The
deserializer is written by hand: an untagged derive breaks when another crate in the build
enables serde_json’s arbitrary_precision (as the ssi crates behind oxilite-vc do).
Variants§
Implementations§
Trait Implementations§
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