pub enum FilterOp {
Show 13 variants
Eq,
Neq,
Gt,
Gte,
Lt,
Lte,
In,
NotIn,
Contains,
StartsWith,
EndsWith,
Exists,
NotExists,
}Expand description
Filter comparison operator. Closed set — wire and Rust agree on the vocabulary so per-service operator dialects (“eq” vs “equal” vs “==”) can’t drift.
Mirrors bones.v1.FilterOp in proto/bones/v1/queries.proto.
Variants§
Eq
field == value.
Neq
field != value.
Gt
field > value.
Gte
field >= value.
Lt
field < value.
Lte
field <= value.
In
Membership; value carries a server-defined separator (default ‘,’).
NotIn
Non-membership; value carries a separator-joined list.
Contains
Substring match on string fields.
StartsWith
Prefix match on string fields.
EndsWith
Suffix match on string fields.
Exists
Field is present; value ignored.
NotExists
Field is absent; value ignored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FilterOp
impl<'de> Deserialize<'de> for FilterOp
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FilterOp
impl Eq for FilterOp
impl StructuralPartialEq for FilterOp
Auto Trait Implementations§
impl Freeze for FilterOp
impl RefUnwindSafe for FilterOp
impl Send for FilterOp
impl Sync for FilterOp
impl Unpin for FilterOp
impl UnsafeUnpin for FilterOp
impl UnwindSafe for FilterOp
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