pub struct Filter { /* private fields */ }
Implementations§
Source§impl Filter
impl Filter
pub fn new(condition: impl Into<String>) -> Self
pub fn and(self, condition: impl Into<String>) -> Self
pub fn or(self, condition: impl Into<String>) -> Self
pub fn and_not(self, condition: impl Into<String>) -> Self
pub fn or_not(self, condition: impl Into<String>) -> Self
pub fn include(key: impl Into<String>, values: Vec<impl Into<String>>) -> String
pub fn exclude(key: impl Into<String>, values: Vec<impl Into<String>>) -> String
pub fn include_all( key: impl Into<String>, values: Vec<impl Into<String>>, ) -> String
pub fn in_values( key: impl Into<String>, values: Vec<impl Into<String>>, ) -> String
pub fn not_in(key: impl Into<String>, values: Vec<impl Into<String>>) -> String
pub fn condition(&self) -> &str
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
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