pub struct HighlightConfig {
pub pre_tag: String,
pub post_tag: String,
pub fields: Vec<String>,
pub fragment_size: usize,
pub number_of_fragments: usize,
}Expand description
Highlight configuration
Fields§
§pre_tag: StringPre tag
post_tag: StringPost tag
fields: Vec<String>Fields to highlight
fragment_size: usizeFragment size
number_of_fragments: usizeNumber of fragments
Trait Implementations§
Source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
Source§impl Debug for HighlightConfig
impl Debug for HighlightConfig
Source§impl<'de> Deserialize<'de> for HighlightConfig
impl<'de> Deserialize<'de> for HighlightConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HighlightConfig
impl RefUnwindSafe for HighlightConfig
impl Send for HighlightConfig
impl Sync for HighlightConfig
impl Unpin for HighlightConfig
impl UnsafeUnpin for HighlightConfig
impl UnwindSafe for HighlightConfig
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