[−][src]Struct rs_es::operations::search::highlight::Highlight
Fields
fields: HashMap<String, Setting>
encoder: Option<Encoders>
Methods
impl Highlight
[src]
pub fn new() -> Highlight
[src]
Create an Highlight entity without any field or setting
specified as they are supposed to be added via the add
method.
Examples
use rs_es::operations::search::highlight::{Highlight, Setting, SettingTypes, Encoders}; let mut highlight = Highlight::new().with_encoder(Encoders::HTML).to_owned(); let setting = Setting::new().with_type(SettingTypes::Plain).to_owned(); highlight.add_setting("first_name".to_owned(), setting);
pub fn with_encoder(&mut self, encoder: Encoders) -> &mut Highlight
[src]
pub fn with_pre_tags(&mut self, pre_tags: Vec<String>) -> &mut Highlight
[src]
pub fn with_post_tags(&mut self, post_tags: Vec<String>) -> &mut Highlight
[src]
pub fn add_setting(&mut self, name: String, setting: Setting)
[src]
Add a field to highlight to the set
Trait Implementations
impl Clone for Highlight
[src]
fn clone(&self) -> Highlight
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Highlight
[src]
impl Debug for Highlight
[src]
impl Serialize for Highlight
[src]
Auto Trait Implementations
impl Sync for Highlight
impl Send for Highlight
impl Unpin for Highlight
impl RefUnwindSafe for Highlight
impl UnwindSafe for Highlight
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,