#[non_exhaustive]pub enum SearchOperator {
Show 26 variants
Equals,
NotEquals,
Gt,
Gte,
Lt,
Lte,
IsNull,
IsNotNull,
In,
NotIn,
Between,
NotBetween,
Contains,
NotContains,
StartsWith,
NotStartsWith,
EndsWith,
NotEndsWith,
Like,
NotLike,
ILike,
NotILike,
Regex,
NotRegex,
IRegex,
NotIRegex,
}Expand description
Operators supported by the JSON search API.
Availability is checked against Meta::ops: equality
enables equality, null, list, and membership operators; ordering enables
range comparisons and sorting; pattern enables LIKE/regex operators on text
JSON fields.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Equals
Equality comparison.
NotEquals
Inequality comparison.
Gt
Greater-than comparison.
Gte
Greater-than-or-equal comparison.
Lt
Less-than comparison.
Lte
Less-than-or-equal comparison.
IsNull
IS NULL.
IsNotNull
IS NOT NULL.
In
Membership in a JSON array of values.
NotIn
Negated membership in a JSON array of values.
Between
Inclusive range comparison with a two-element JSON array.
NotBetween
Negated inclusive range comparison with a two-element JSON array.
Contains
Case-insensitive substring match with escaping.
NotContains
Negated case-insensitive substring match with escaping.
StartsWith
Case-insensitive prefix match with escaping.
NotStartsWith
Negated case-insensitive prefix match with escaping.
EndsWith
Case-insensitive suffix match with escaping.
NotEndsWith
Negated case-insensitive suffix match with escaping.
Like
SQL LIKE match.
NotLike
Negated SQL LIKE match.
ILike
SQL ILIKE match.
NotILike
Negated SQL ILIKE match.
Regex
Case-sensitive POSIX regular expression match.
NotRegex
Negated case-sensitive POSIX regular expression match.
IRegex
Case-insensitive POSIX regular expression match.
NotIRegex
Negated case-insensitive POSIX regular expression match.
Trait Implementations§
Source§impl Clone for SearchOperator
impl Clone for SearchOperator
Source§fn clone(&self) -> SearchOperator
fn clone(&self) -> SearchOperator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SearchOperator
Source§impl Debug for SearchOperator
impl Debug for SearchOperator
Source§impl<'de> Deserialize<'de> for SearchOperator
impl<'de> Deserialize<'de> for SearchOperator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SearchOperator
Source§impl PartialEq for SearchOperator
impl PartialEq for SearchOperator
impl StructuralPartialEq for SearchOperator
Auto Trait Implementations§
impl Freeze for SearchOperator
impl RefUnwindSafe for SearchOperator
impl Send for SearchOperator
impl Sync for SearchOperator
impl Unpin for SearchOperator
impl UnsafeUnpin for SearchOperator
impl UnwindSafe for SearchOperator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more