pub enum Operator {
Equals,
Not,
Like,
NotLike,
In,
NotIn,
Min,
Max,
SmallerThan,
GreaterThan,
BitwiseAnd,
}
Expand description
Filter operators of mod.io.
See mod.io docs for more information.
Variants§
Equals
Equal to (id=1
)
Not
Not equal to (id-not=1
)
Like
Equivalent to SQL’s LIKE
. *
is equivalent to SQL’s %
. (name-lk=foo*
)
NotLike
Equivalent to SQL’s NOT LIKE
(name-not-lk=foo*
)
In
Equivalent to SQL’s IN
(id-in=1,3,5
)
NotIn
Equivalent to SQL’s NOT IN
(id-not-in=1,3,5
)
Min
Greater than or equal to (id-min=5
)
Max
Less than or equal to (id-max=10
)
SmallerThan
Less than (id-st=10
)
GreaterThan
Greater than (id-gt=5
)
BitwiseAnd
Match bits (maturity_option-bitwise-and=5
)
Trait Implementations§
source§impl Ord for Operator
impl Ord for Operator
source§impl PartialEq for Operator
impl PartialEq for Operator
source§impl PartialOrd for Operator
impl PartialOrd for Operator
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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