pub enum Condition {
Eq {
key: String,
value: Value,
},
Ne {
key: String,
value: Value,
},
Gt {
key: String,
value: Value,
},
Gte {
key: String,
value: Value,
},
Lt {
key: String,
value: Value,
},
Lte {
key: String,
value: Value,
},
Exists {
key: String,
},
NotExists {
key: String,
},
In {
key: String,
values: Vec<Value>,
},
NotIn {
key: String,
values: Vec<Value>,
},
}Expand description
A single comparison operator applied to one metadata key.
Variants§
Eq
Key equals value.
Ne
Key does not equal value.
Gt
Key is greater than value (numeric / string comparison).
Gte
Key is greater than or equal to value.
Lt
Key is less than value.
Lte
Key is less than or equal to value.
Exists
Key exists in the metadata (regardless of its value).
NotExists
Key does not exist in the metadata.
In
The stored value is one of the listed candidates.
NotIn
The stored value is not any of the listed candidates.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
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 StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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