pub enum ScalarFilter<T> {
}Expand description
Scalar filter operations.
Variants§
Equals(T)
Equals the value.
Not(Box<T>)
Not equals the value.
In(Vec<T>)
In a list of values.
NotIn(Vec<T>)
Not in a list of values.
Lt(T)
Less than.
Lte(T)
Less than or equal.
Gt(T)
Greater than.
Gte(T)
Greater than or equal.
Contains(T)
Contains (for strings).
StartsWith(T)
Starts with (for strings).
EndsWith(T)
Ends with (for strings).
IsNull
Is null.
IsNotNull
Is not null.
Implementations§
Source§impl<T: Into<FilterValue>> ScalarFilter<T>
impl<T: Into<FilterValue>> ScalarFilter<T>
Sourcepub fn into_filter(self, column: impl Into<FieldName>) -> Filter
pub fn into_filter(self, column: impl Into<FieldName>) -> Filter
Convert to a Filter with the given column name.
The column name can be a static string (zero allocation) or an owned string. For IN/NOT IN filters, uses SmallVec to avoid heap allocation for ≤16 values.
Trait Implementations§
Source§impl<T: Clone> Clone for ScalarFilter<T>
impl<T: Clone> Clone for ScalarFilter<T>
Source§fn clone(&self) -> ScalarFilter<T>
fn clone(&self) -> ScalarFilter<T>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ScalarFilter<T>
impl<T: Debug> Debug for ScalarFilter<T>
Source§impl<T: PartialEq> PartialEq for ScalarFilter<T>
impl<T: PartialEq> PartialEq for ScalarFilter<T>
impl<T> StructuralPartialEq for ScalarFilter<T>
Auto Trait Implementations§
impl<T> Freeze for ScalarFilter<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScalarFilter<T>where
T: RefUnwindSafe,
impl<T> Send for ScalarFilter<T>where
T: Send,
impl<T> Sync for ScalarFilter<T>where
T: Sync,
impl<T> Unpin for ScalarFilter<T>where
T: Unpin,
impl<T> UnwindSafe for ScalarFilter<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)