pub struct FilterBuilder { /* private fields */ }Expand description
Builder for creating filters
Implementations§
Source§impl FilterBuilder
impl FilterBuilder
Sourcepub fn eq(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn eq(self, field: impl Into<String>, value: impl Into<Value>) -> Self
Add an equality condition
Sourcepub fn ne(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn ne(self, field: impl Into<String>, value: impl Into<Value>) -> Self
Add a not-equal condition
Sourcepub fn gt(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn gt(self, field: impl Into<String>, value: impl Into<Value>) -> Self
Add a greater-than condition
Sourcepub fn gte(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn gte(self, field: impl Into<String>, value: impl Into<Value>) -> Self
Add a greater-than-or-equal condition
Sourcepub fn lt(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn lt(self, field: impl Into<String>, value: impl Into<Value>) -> Self
Add a less-than condition
Sourcepub fn lte(self, field: impl Into<String>, value: impl Into<Value>) -> Self
pub fn lte(self, field: impl Into<String>, value: impl Into<Value>) -> Self
Add a less-than-or-equal condition
Sourcepub fn in(self, field: impl Into<String>, values: Vec<Value>) -> Self
pub fn in(self, field: impl Into<String>, values: Vec<Value>) -> Self
Add an “in list” condition
Sourcepub fn nin(self, field: impl Into<String>, values: Vec<Value>) -> Self
pub fn nin(self, field: impl Into<String>, values: Vec<Value>) -> Self
Add a “not in list” condition
Sourcepub fn contains(
self,
field: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn contains( self, field: impl Into<String>, value: impl Into<String>, ) -> Self
Add a contains condition (case-sensitive)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterBuilder
impl RefUnwindSafe for FilterBuilder
impl Send for FilterBuilder
impl Sync for FilterBuilder
impl Unpin for FilterBuilder
impl UnwindSafe for FilterBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more