Enum rs_es::operations::search::Source
[−]
[src]
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]
fn include(fields: &'a [&'a str]) -> Source<'a>
An include-only source filter
fn exclude(fields: &'a [&'a str]) -> Source<'a>
An exclude-only source filter
fn filter(incl: &'a [&'a str], excl: &'a [&'a str]) -> Source<'a>
An include and exclude source filter
Trait Implementations
impl<'a> Serialize for Source<'a>
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.