pub enum ConditionValue {
String(String),
Integer(i64),
Number(f64),
Bool(bool),
}Expand description
Right-hand side value in a WHERE condition.
Variants§
String(String)
Integer(i64)
An integer literal (no decimal point in the source lexeme), preserved
as i64 so it binds as QueryValue::Integer and compares exactly
against json_extract’s INTEGER storage class – f64 cannot
represent every i64 exactly past 2^53, which silently rounds large
literals (e.g. 9007199254740993) to the wrong value (issue #832).
Number(f64)
A float literal (decimal point present in the source lexeme).
Bool(bool)
Trait Implementations§
Source§impl Clone for ConditionValue
impl Clone for ConditionValue
Source§fn clone(&self) -> ConditionValue
fn clone(&self) -> ConditionValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConditionValue
impl Debug for ConditionValue
Source§impl PartialEq for ConditionValue
impl PartialEq for ConditionValue
impl StructuralPartialEq for ConditionValue
Auto Trait Implementations§
impl Freeze for ConditionValue
impl RefUnwindSafe for ConditionValue
impl Send for ConditionValue
impl Sync for ConditionValue
impl Unpin for ConditionValue
impl UnsafeUnpin for ConditionValue
impl UnwindSafe for ConditionValue
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