#[repr(i32)]pub enum Operator {
Unspecified = 0,
LessThan = 1,
LessThanOrEqual = 2,
GreaterThan = 3,
GreaterThanOrEqual = 4,
Equal = 5,
NotEqual = 6,
ArrayContains = 7,
In = 8,
ArrayContainsAny = 9,
NotIn = 10,
}
Expand description
A field filter operator.
Variants§
Unspecified = 0
Unspecified. This value must not be used.
LessThan = 1
The given field
is less than the given value
.
Requires:
- That
field
come first inorder_by
.
LessThanOrEqual = 2
The given field
is less than or equal to the given value
.
Requires:
- That
field
come first inorder_by
.
GreaterThan = 3
The given field
is greater than the given value
.
Requires:
- That
field
come first inorder_by
.
GreaterThanOrEqual = 4
The given field
is greater than or equal to the given value
.
Requires:
- That
field
come first inorder_by
.
Equal = 5
The given field
is equal to the given value
.
NotEqual = 6
The given field
is not equal to the given value
.
Requires:
- No other
NOT_EQUAL
,NOT_IN
,IS_NOT_NULL
, orIS_NOT_NAN
. - That
field
comes first in theorder_by
.
ArrayContains = 7
The given field
is an array that contains the given value
.
In = 8
The given field
is equal to at least one value in the given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
IN
orARRAY_CONTAINS_ANY
orNOT_IN
.
ArrayContainsAny = 9
The given field
is an array that contains any of the values in the
given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
IN
orARRAY_CONTAINS_ANY
orNOT_IN
.
NotIn = 10
The value of the field
is not in the given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
IN
,ARRAY_CONTAINS_ANY
,NOT_IN
,NOT_EQUAL
,IS_NOT_NULL
, orIS_NOT_NAN
. - That
field
comes first in theorder_by
.
Implementations§
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 Copy for Operator
impl 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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request