#[non_exhaustive]pub enum OperatorCategory {
Comparison,
String,
Null,
Array,
Vector,
Fulltext,
Containment,
Network,
Ltree,
}Expand description
Broad family of an operator. Drives documentation grouping and the REST surface’s error messages; it is not consulted during SQL generation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Comparison
Basic comparison: =, !=, >, <, >=, <=.
String
String operations: LIKE, ILIKE, regex.
Null
NULL checks: IS NULL, IS NOT NULL.
Array
Array/list containment: @>, <@, &&.
Vector
pgvector distance operators.
Fulltext
PostgreSQL full-text search.
Containment
JSONB containment: @>, <@.
Network
Network/IP operators.
Ltree
Ltree (hierarchical) operators.
Trait Implementations§
Source§impl Clone for OperatorCategory
impl Clone for OperatorCategory
Source§fn clone(&self) -> OperatorCategory
fn clone(&self) -> OperatorCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperatorCategory
Source§impl Debug for OperatorCategory
impl Debug for OperatorCategory
impl Eq for OperatorCategory
Source§impl PartialEq for OperatorCategory
impl PartialEq for OperatorCategory
impl StructuralPartialEq for OperatorCategory
Auto Trait Implementations§
impl Freeze for OperatorCategory
impl RefUnwindSafe for OperatorCategory
impl Send for OperatorCategory
impl Sync for OperatorCategory
impl Unpin for OperatorCategory
impl UnsafeUnpin for OperatorCategory
impl UnwindSafe for OperatorCategory
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.