pub struct ContentFilterBuilder { /* private fields */ }Expand description
This is a convenience for building ContentFilter using operands as building blocks
This builder does not check to see that the content filter is valid, i.e. if you
reference an element by index that doesn’t exist, or introduce a loop then you will
not get an error until you feed it to a server and the server rejects it or breaks.
The builder takes generic types to make it easier to work with. Operands are converted to extension objects.
Implementations§
Source§impl ContentFilterBuilder
impl ContentFilterBuilder
pub fn new() -> ContentFilterBuilder
pub fn eq<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn null<T>(self, o1: T) -> ContentFilterBuilder
pub fn gt<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn lt<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn gte<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn lte<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn like<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn not<T>(self, o1: T) -> ContentFilterBuilder
pub fn between<T, S, U>(self, o1: T, o2: S, o3: U) -> ContentFilterBuilder
pub fn in_list<T, S>(self, o1: T, list_items: Vec<S>) -> ContentFilterBuilder
pub fn and<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn or<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn cast<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn bitwise_and<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn bitwise_or<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
pub fn build(self) -> ContentFilter
Trait Implementations§
Source§impl Default for ContentFilterBuilder
impl Default for ContentFilterBuilder
Source§fn default() -> ContentFilterBuilder
fn default() -> ContentFilterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContentFilterBuilder
impl RefUnwindSafe for ContentFilterBuilder
impl Send for ContentFilterBuilder
impl Sync for ContentFilterBuilder
impl Unpin for ContentFilterBuilder
impl UnwindSafe for ContentFilterBuilder
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