Skip to main content

BTreeFieldValuesFilterBuilder

Struct BTreeFieldValuesFilterBuilder 

Source
pub struct BTreeFieldValuesFilterBuilder<F, VF, V, S: State = Empty>
where F: Field, VF: ValueFilter<V>,
{ /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<F, VF, V, S: State> BTreeFieldValuesFilterBuilder<F, VF, V, S>
where F: Field, VF: ValueFilter<V>,

Source

pub fn build(self) -> BTreeFieldValuesFilter<F, VF, V>
where S: IsComplete,

Finish building and return the requested object

Source

pub fn fields( self, value: BTreeMap<F, VF>, ) -> BTreeFieldValuesFilterBuilder<F, VF, V, SetFields<S>>
where S::Fields: IsUnset,

Optional (Some / Option setters). Default: <BTreeMap<F, VF> as Default>::default().

Field-value filters to match against.

Source

pub fn maybe_fields( self, value: Option<BTreeMap<F, VF>>, ) -> BTreeFieldValuesFilterBuilder<F, VF, V, SetFields<S>>
where S::Fields: IsUnset,

Optional (Some / Option setters). Default: <BTreeMap<F, VF> as Default>::default().

Field-value filters to match against.

Source

pub fn mode( self, value: MatchingMode, ) -> BTreeFieldValuesFilterBuilder<F, VF, V, SetMode<S>>
where S::Mode: IsUnset,

Optional (Some / Option setters). Default: <MatchingMode as Default>::default().

Field filter matching mode.

Source

pub fn maybe_mode( self, value: Option<MatchingMode>, ) -> BTreeFieldValuesFilterBuilder<F, VF, V, SetMode<S>>
where S::Mode: IsUnset,

Optional (Some / Option setters). Default: <MatchingMode as Default>::default().

Field filter matching mode.

Source

pub fn value( self, value: PhantomData<V>, ) -> BTreeFieldValuesFilterBuilder<F, VF, V, SetValue<S>>
where S::Value: IsUnset,

Optional (Some / Option setters). Default: <PhantomData<V> as Default>::default().

Field value phantom type.

Source

pub fn maybe_value( self, value: Option<PhantomData<V>>, ) -> BTreeFieldValuesFilterBuilder<F, VF, V, SetValue<S>>
where S::Value: IsUnset,

Optional (Some / Option setters). Default: <PhantomData<V> as Default>::default().

Field value phantom type.

Auto Trait Implementations§

§

impl<F, VF, V, S> Freeze for BTreeFieldValuesFilterBuilder<F, VF, V, S>

§

impl<F, VF, V, S> RefUnwindSafe for BTreeFieldValuesFilterBuilder<F, VF, V, S>

§

impl<F, VF, V, S> Send for BTreeFieldValuesFilterBuilder<F, VF, V, S>
where V: Send, F: Send, VF: Send,

§

impl<F, VF, V, S> Sync for BTreeFieldValuesFilterBuilder<F, VF, V, S>
where V: Sync, F: Sync, VF: Sync,

§

impl<F, VF, V, S> Unpin for BTreeFieldValuesFilterBuilder<F, VF, V, S>
where V: Unpin,

§

impl<F, VF, V, S> UnsafeUnpin for BTreeFieldValuesFilterBuilder<F, VF, V, S>

§

impl<F, VF, V, S> UnwindSafe for BTreeFieldValuesFilterBuilder<F, VF, V, S>

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.