ContentFilterBuilder

Struct ContentFilterBuilder 

Source
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

Source

pub fn new() -> ContentFilterBuilder

Source

pub fn eq<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn null<T>(self, o1: T) -> ContentFilterBuilder
where T: Into<Operand>,

Source

pub fn gt<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn lt<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn gte<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn lte<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn like<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn not<T>(self, o1: T) -> ContentFilterBuilder
where T: Into<Operand>,

Source

pub fn between<T, S, U>(self, o1: T, o2: S, o3: U) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>, U: Into<Operand>,

Source

pub fn in_list<T, S>(self, o1: T, list_items: Vec<S>) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn and<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn or<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn cast<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn bitwise_and<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn bitwise_or<T, S>(self, o1: T, o2: S) -> ContentFilterBuilder
where T: Into<Operand>, S: Into<Operand>,

Source

pub fn build(self) -> ContentFilter

Trait Implementations§

Source§

impl Default for ContentFilterBuilder

Source§

fn default() -> ContentFilterBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.