pub enum ConditionValue {
String(String),
Integer(i64),
Number(f64),
Bool(bool),
List(Vec<ConditionValue>),
Null,
}Expand description
A typed condition value; integer and decimal forms remain distinct.
See crates/khive-query/docs/api/ast.md for binding and precision details.
Variants§
String(String)
Integer(i64)
Exact i64 literal whose source lexeme had no decimal point.
Number(f64)
A float literal (decimal point present in the source lexeme).
Bool(bool)
List(Vec<ConditionValue>)
A list literal used by the IN operator.
Null
The operand marker for the operand-free IS NOT NULL operator.
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