Enum google_api_proto::google::datastore::v1::property_filter::Operator
source · #[repr(i32)]pub enum Operator {
Unspecified = 0,
LessThan = 1,
LessThanOrEqual = 2,
GreaterThan = 3,
GreaterThanOrEqual = 4,
Equal = 5,
In = 6,
NotEqual = 9,
HasAncestor = 11,
NotIn = 13,
}
Expand description
A property filter operator.
Variants§
Unspecified = 0
Unspecified. This value must not be used.
LessThan = 1
The given property
is less than the given value
.
Requires:
- That
property
comes first inorder_by
.
LessThanOrEqual = 2
The given property
is less than or equal to the given value
.
Requires:
- That
property
comes first inorder_by
.
GreaterThan = 3
The given property
is greater than the given value
.
Requires:
- That
property
comes first inorder_by
.
GreaterThanOrEqual = 4
The given property
is greater than or equal to the given value
.
Requires:
- That
property
comes first inorder_by
.
Equal = 5
The given property
is equal to the given value
.
In = 6
The given property
is equal to at least one value in the given array.
Requires:
- That
value
is a non-emptyArrayValue
, subject to disjunction limits. - No
NOT_IN
is in the same query.
NotEqual = 9
The given property
is not equal to the given value
.
Requires:
- No other
NOT_EQUAL
orNOT_IN
is in the same query. - That
property
comes first in theorder_by
.
HasAncestor = 11
Limit the result set to the given entity and its descendants.
Requires:
- That
value
is an entity key. - All evaluated disjunctions must have the same
HAS_ANCESTOR
filter.
NotIn = 13
The value of the property
is not in the given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
OR
,IN
,NOT_IN
,NOT_EQUAL
is in the same query. - 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