[][src]Struct rs_es::operations::search::highlight::Setting

pub struct Setting {
    pub setting_type: Option<SettingTypes>,
    pub index_options: Option<IndexOptions>,
    pub term_vector: Option<TermVector>,
    pub force_source: bool,
    pub fragment_size: u32,
    pub number_of_fragments: u32,
    pub no_match_size: u32,
    pub matched_fields: Option<Vec<String>>,
}

Fields

setting_type: Option<SettingTypes>index_options: Option<IndexOptions>term_vector: Option<TermVector>force_source: boolfragment_size: u32number_of_fragments: u32no_match_size: u32matched_fields: Option<Vec<String>>

Methods

impl Setting[src]

pub fn new() -> Self[src]

pub fn with_type(&mut self, setting_type: SettingTypes) -> &mut Setting[src]

pub fn with_index_options(
    &mut self,
    index_options: IndexOptions
) -> &mut Setting
[src]

pub fn with_term_vector(&mut self, term_vector: TermVector) -> &mut Setting[src]

pub fn with_force_source(&mut self, force_source: bool) -> &mut Setting[src]

pub fn with_fragment_size(&mut self, fragment_size: u32) -> &mut Setting[src]

pub fn with_number_of_fragments(
    &mut self,
    number_of_fragments: u32
) -> &mut Setting
[src]

pub fn with_no_match_size(&mut self, no_match_size: u32) -> &mut Setting[src]

pub fn with_matched_fields(
    &mut self,
    matched_fields: Vec<String>
) -> &mut Setting
[src]

Trait Implementations

impl Clone for Setting[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Setting[src]

impl Debug for Setting[src]

impl Serialize for Setting[src]

Auto Trait Implementations

impl Sync for Setting

impl Send for Setting

impl Unpin for Setting

impl RefUnwindSafe for Setting

impl UnwindSafe for Setting

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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

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