[][src]Enum rs_es::operations::search::Source

pub enum Source<'a> {
    Off,
    Filter(Option<&'a [&'a str]>, Option<&'a [&'a str]>),
}

Options for source filtering

Variants

Off

Disable source documents

Filter(Option<&'a [&'a str]>, Option<&'a [&'a str]>)

Filtering

Methods

impl<'a> Source<'a>[src]

pub fn include(fields: &'a [&'a str]) -> Source<'a>[src]

An include-only source filter

pub fn exclude(fields: &'a [&'a str]) -> Source<'a>[src]

An exclude-only source filter

pub fn filter(incl: &'a [&'a str], excl: &'a [&'a str]) -> Source<'a>[src]

An include and exclude source filter

Trait Implementations

impl<'a> Debug for Source<'a>[src]

impl<'a> Serialize for Source<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Source<'a>

impl<'a> Send for Source<'a>

impl<'a> Sync for Source<'a>

impl<'a> Unpin for Source<'a>

impl<'a> UnwindSafe for Source<'a>

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, 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.

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

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