Enum elasticsearch::params::SourceFilter[][src]

pub enum SourceFilter {
    Enable(bool),
    Include(String),
    Includes(Vec<String>),
    IncludesExcludes {
        includes: Vec<String>,
        excludes: Vec<String>,
    },
}

Control how the _source field is returned with every hit.

By default operations return the contents of the _source field unless you have used the stored_fields parameter or if the _source field is disabled.

Variants

Enable(bool)

Whether _source retrieval should be enabled (true) or disabled (false)

Include(String)

A wildcard pattern to control what parts of _source should be returned

Includes(Vec<String>)

A collection of wildcard patterns to control what parts of _source should be returned

IncludesExcludes

A collection of wildcard patterns to control what parts of _source should and should not be returned

Fields of IncludesExcludes

includes: Vec<String>excludes: Vec<String>

Trait Implementations

impl Clone for SourceFilter[src]

impl Debug for SourceFilter[src]

impl<'de> Deserialize<'de> for SourceFilter[src]

impl<'a> From<&'a str> for SourceFilter[src]

impl<'a> From<(Vec<&'a str, Global>, Vec<&'a str, Global>)> for SourceFilter[src]

impl From<(Vec<String, Global>, Vec<String, Global>)> for SourceFilter[src]

impl From<String> for SourceFilter[src]

impl<'a> From<Vec<&'a str, Global>> for SourceFilter[src]

impl From<Vec<String, Global>> for SourceFilter[src]

impl From<bool> for SourceFilter[src]

impl PartialEq<SourceFilter> for SourceFilter[src]

impl Serialize for SourceFilter[src]

impl StructuralPartialEq for SourceFilter[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.