pub enum Lookup {
IExact(Value),
Contains {
needle: String,
case_insensitive: bool,
},
StartsWith {
needle: String,
case_insensitive: bool,
},
EndsWith {
needle: String,
case_insensitive: bool,
},
Regex(String),
In(Vec<Value>),
InSubquery(Box<QueryPlan>),
Range(Value, Value),
IsNull(bool),
}Expand description
Lookups that are not plain binary comparisons.
Variants§
IExact(Value)
Case-insensitive equality.
Contains
Substring match; case_insensitive selects icontains.
Fields
StartsWith
Prefix match.
EndsWith
Suffix match.
Regex(String)
Regex match (capability-gated).
In(Vec<Value>)
Membership in a literal list.
InSubquery(Box<QueryPlan>)
Membership in the single column produced by a subquery.
Range(Value, Value)
Inclusive range lo <= x <= hi.
IsNull(bool)
IS NULL (true) / IS NOT NULL (false).
Trait Implementations§
impl StructuralPartialEq for Lookup
Auto Trait Implementations§
impl Freeze for Lookup
impl RefUnwindSafe for Lookup
impl Send for Lookup
impl Sync for Lookup
impl Unpin for Lookup
impl UnsafeUnpin for Lookup
impl UnwindSafe for Lookup
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