pub enum Filter {
Show 26 variants
Eq {
attr: String,
value: Value,
},
NotEq {
attr: String,
value: Value,
},
Lt {
attr: String,
value: Value,
},
Lte {
attr: String,
value: Value,
},
Gt {
attr: String,
value: Value,
},
Gte {
attr: String,
value: Value,
},
AnyLt {
attr: String,
value: Value,
},
AnyLte {
attr: String,
value: Value,
},
AnyGt {
attr: String,
value: Value,
},
AnyGte {
attr: String,
value: Value,
},
In {
attr: String,
values: Vec<Value>,
},
NotIn {
attr: String,
values: Vec<Value>,
},
Contains {
attr: String,
value: Value,
},
NotContains {
attr: String,
value: Value,
},
ContainsAny {
attr: String,
values: Vec<Value>,
},
NotContainsAny {
attr: String,
values: Vec<Value>,
},
Glob {
attr: String,
pattern: String,
},
NotGlob {
attr: String,
pattern: String,
},
IGlob {
attr: String,
pattern: String,
},
NotIGlob {
attr: String,
pattern: String,
},
Regex {
attr: String,
pattern: String,
},
ContainsAllTokens {
attr: String,
value: String,
params: Option<ContainsAllTokensParams>,
},
ContainsTokenSequence {
attr: String,
value: String,
},
And(Vec<Filter>),
Or(Vec<Filter>),
Not(Box<Filter>),
}Variants§
Eq
NotEq
Lt
Lte
Gt
Gte
AnyLt
AnyLte
AnyGt
AnyGte
In
NotIn
Contains
NotContains
ContainsAny
NotContainsAny
Glob
NotGlob
IGlob
NotIGlob
Regex
ContainsAllTokens
ContainsTokenSequence
And(Vec<Filter>)
Or(Vec<Filter>)
Not(Box<Filter>)
Implementations§
Source§impl Filter
impl Filter
pub fn eq(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn not_eq(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn lt(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn lte(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn gt(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn gte(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn in(attr: impl Into<String>, values: Vec<Value>) -> Self
pub fn not_in(attr: impl Into<String>, values: Vec<Value>) -> Self
pub fn contains(attr: impl Into<String>, value: impl Into<Value>) -> Self
pub fn contains_any(attr: impl Into<String>, values: Vec<Value>) -> Self
pub fn glob(attr: impl Into<String>, pattern: impl Into<String>) -> Self
pub fn iglob(attr: impl Into<String>, pattern: impl Into<String>) -> Self
pub fn regex(attr: impl Into<String>, pattern: impl Into<String>) -> Self
pub fn and(filters: Vec<Filter>) -> Self
pub fn or(filters: Vec<Filter>) -> Self
pub fn not(filter: Filter) -> Self
pub fn contains_all_tokens( attr: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn contains_all_tokens_with_params( attr: impl Into<String>, value: impl Into<String>, params: ContainsAllTokensParams, ) -> Self
Trait Implementations§
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