pub struct Filter {
pub field: String,
pub key: Option<String>,
pub value: Option<String>,
pub relation: RelationType,
}
Fields§
§field: String
Name of the field to use as the first operand in the filter expression.
key: Option<String>
If field
is tag
, this field is required to specify key
inside the tags.
value: Option<String>
Constant value to use as the second operand in the filter expression. This value is required when the relation operator is a binary operator.
relation: RelationType
Operator of a filter expression.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filter
impl<'de> Deserialize<'de> for Filter
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 Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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