#[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§
source§impl Operator
impl Operator
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Operator
impl TryFrom<i32> for Operator
§type Error = DecodeError
type Error = DecodeError
impl 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
§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
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request