pub struct HighlightConfig {
pub path: String,
pub max_chars_to_examine: u32,
pub max_num_passages: u32,
}Expand description
Highlight configuration.
Fields§
§path: StringPath to highlight.
max_chars_to_examine: u32Max characters per highlight.
max_num_passages: u32Max number of highlights.
Trait Implementations§
Source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
Source§fn clone(&self) -> HighlightConfig
fn clone(&self) -> HighlightConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HighlightConfig
impl Debug for HighlightConfig
Source§impl Default for HighlightConfig
impl Default 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 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