[][src]Struct meilimelo::FacetBuilder

pub struct FacetBuilder { /* fields omitted */ }

Utility to help build facet filters using the builder pattern

Calling build() will produce a Facets struct that can be fed to Query's facets().

Examples

FacetBuilder::new("company", "ACME Corp")
  .or("company", "Big Corp")
  .and("roles", "Tech")
  .build();

Implementations

impl FacetBuilder[src]

pub fn new(key: &str, value: &str) -> FacetBuilder[src]

pub fn or(self, key: &str, value: &str) -> FacetBuilder[src]

pub fn and(self, key: &str, value: &str) -> FacetBuilder[src]

pub fn build(self) -> Facets[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.