pub enum FilterOperator {
LessThan,
Equal,
GreaterThan,
StartsWith,
Contains,
EndsWith,
}Expand description
The comparison a generated filter field performs against its column.
Chosen by #[derive(Filters)] from the field’s #[filter(...)] meta; how
it is expressed in a query is up to the persistence layer.
Variants§
LessThan
lt: the column is less than the value.
Equal
eq (and bool): the column equals the value.
GreaterThan
gt: the column is greater than the value.
StartsWith
sw: the column starts with the value.
Contains
c: the column contains the value.
EndsWith
ew: the column ends with the value.
Trait Implementations§
Source§impl Clone for FilterOperator
impl Clone for FilterOperator
Source§fn clone(&self) -> FilterOperator
fn clone(&self) -> FilterOperator
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 moreimpl Copy for FilterOperator
Source§impl Debug for FilterOperator
impl Debug for FilterOperator
impl Eq for FilterOperator
Source§impl PartialEq for FilterOperator
impl PartialEq for FilterOperator
impl StructuralPartialEq for FilterOperator
Auto Trait Implementations§
impl Freeze for FilterOperator
impl RefUnwindSafe for FilterOperator
impl Send for FilterOperator
impl Sync for FilterOperator
impl Unpin for FilterOperator
impl UnsafeUnpin for FilterOperator
impl UnwindSafe for FilterOperator
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