Struct elasticsearch_dsl::search::highlight::Highlight
source · pub struct Highlight { /* private fields */ }
Expand description
Highlight structure
Implementations§
source§impl Highlight
impl Highlight
sourcepub fn highlighter<H>(self, highlighter: H) -> Selfwhere
H: Into<Highlighter>,
pub fn highlighter<H>(self, highlighter: H) -> Selfwhere H: Into<Highlighter>,
Sets highlighter settings
sourcepub fn field<F>(self, field: F) -> Selfwhere
F: ToString,
pub fn field<F>(self, field: F) -> Selfwhere F: ToString,
Adds field or field pattern to highlighter
sourcepub fn field_highlighter<F, H>(self, field: F, highlighter: H) -> Selfwhere
F: ToString,
H: Into<Highlighter>,
pub fn field_highlighter<F, H>(self, field: F, highlighter: H) -> Selfwhere F: ToString, H: Into<Highlighter>,
Adds field or field pattern to highlighter
Trait Implementations§
source§impl PartialEq<Highlight> for Highlight
impl PartialEq<Highlight> for Highlight
impl StructuralPartialEq for Highlight
Auto Trait Implementations§
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnwindSafe for Highlight
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more