Enum svc_storage::grpc::server::PredicateOperator
source · #[repr(i32)]pub enum PredicateOperator {
Show 16 variants
Equals = 0,
NotEquals = 1,
In = 2,
NotIn = 3,
Between = 4,
IsNull = 5,
IsNotNull = 6,
Ilike = 7,
Like = 8,
Greater = 9,
GreaterOrEqual = 10,
Less = 11,
LessOrEqual = 12,
GeoIntersect = 13,
GeoWithin = 14,
GeoDisjoint = 15,
}
Expand description
Predicate operators which can be used for the [FilterOption
]
Variants§
Equals = 0
indicates a search query with <col> = <value> filter
NotEquals = 1
indicates a search query with <col> <> <value> filter
In = 2
indicates a search query with NOT IN (..) filter
NotIn = 3
indicates a search query with IN (..) filter
Between = 4
indicates a search query with BETWEEN <min> AND <max> filter
IsNull = 5
indicates a search query with <col> IS NULL filter
IsNotNull = 6
indicates a search query with <col> IS NOT NULL filter
Ilike = 7
indicates a search query with <col> ILIKE <value> filter
Like = 8
indicates a search query with <col> LIKE <value> filter
Greater = 9
indicates a search query with <col> > <value> filter
GreaterOrEqual = 10
indicates a search query with <col> >= <value> filter
Less = 11
indicates a search query with <col> < <value> filter
LessOrEqual = 12
indicates a search query with <col> <= <value> filter
GeoIntersect = 13
indicates a geographic search query with <col> ST_Intersect filter
GeoWithin = 14
indicates a geographic search query with <col> ST_Within filter
GeoDisjoint = 15
indicates a geographic search query with <col> IS NOT ST_Disjoint filter
Implementations§
source§impl PredicateOperator
impl PredicateOperator
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 Clone for PredicateOperator
impl Clone for PredicateOperator
source§fn clone(&self) -> PredicateOperator
fn clone(&self) -> PredicateOperator
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredicateOperator
impl Debug for PredicateOperator
source§impl Default for PredicateOperator
impl Default for PredicateOperator
source§fn default() -> PredicateOperator
fn default() -> PredicateOperator
source§impl From<PredicateOperator> for i32
impl From<PredicateOperator> for i32
source§fn from(value: PredicateOperator) -> i32
fn from(value: PredicateOperator) -> i32
source§impl FromPrimitive for PredicateOperator
impl FromPrimitive for PredicateOperator
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl Hash for PredicateOperator
impl Hash for PredicateOperator
source§impl Ord for PredicateOperator
impl Ord for PredicateOperator
source§fn cmp(&self, other: &PredicateOperator) -> Ordering
fn cmp(&self, other: &PredicateOperator) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PredicateOperator
impl PartialEq for PredicateOperator
source§fn eq(&self, other: &PredicateOperator) -> bool
fn eq(&self, other: &PredicateOperator) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PredicateOperator
impl PartialOrd for PredicateOperator
source§fn partial_cmp(&self, other: &PredicateOperator) -> Option<Ordering>
fn partial_cmp(&self, other: &PredicateOperator) -> Option<Ordering>
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 PredicateOperator
impl TryFrom<i32> for PredicateOperator
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<PredicateOperator, DecodeError>
fn try_from(value: i32) -> Result<PredicateOperator, DecodeError>
impl Copy for PredicateOperator
impl Eq for PredicateOperator
impl StructuralEq for PredicateOperator
impl StructuralPartialEq for PredicateOperator
Auto Trait Implementations§
impl RefUnwindSafe for PredicateOperator
impl Send for PredicateOperator
impl Sync for PredicateOperator
impl Unpin for PredicateOperator
impl UnwindSafe for PredicateOperator
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<T> CallHasher for T
impl<T> CallHasher for T
§impl<T> CloneAny for T
impl<T> CloneAny for 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