Enum keen::Filter
[−]
[src]
pub enum Filter { Eq(String, String), Ne(String, String), Lt(String, String), Gt(String, String), Lte(String, String), Gte(String, String), NotContains(String, String), Contains(String, String), Exists(String, String), In(String, String), }
Type define a filter.
Variants
Eq(String, String)
this means a == b
Ne(String, String)
this means a != b
Lt(String, String)
this means a < b
Gt(String, String)
this means a > b
Lte(String, String)
this means a <= b
Gte(String, String)
this means a >= b
NotContains(String, String)
this means a ∉ b
Contains(String, String)
this means a ∈ b
Exists(String, String)
this means ∃a ∈ b
In(String, String)
this means in
Methods
impl Filter
[src]
fn eq<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new eq operator
fn ne<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new ne operator
fn lt<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new lt operator
fn gt<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new gt operator
fn lte<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new lte operator
fn gte<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new gte operator
fn contains<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new contains operator
fn not_contains<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new not_contains operator
fn exists<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new exists operator
fn isin<T>(name: &str, value: T) -> Filter where T: ToFilterValue
Generate a new in operator
Trait Implementations
impl Display for Filter
[src]
impl Debug for Filter
[src]
impl Clone for Filter
[src]
fn clone(&self) -> Filter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Filter
[src]
fn eq(&self, __arg_0: &Filter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Filter) -> bool
This method tests for !=
.