pub struct StringDetectionParameters {
pub min_string_length: usize,
pub utf8_enabled: bool,
pub utf16_enabled: bool,
pub utf32_enabled: bool,
pub unicode_block_names: Vec<String>,
}Expand description
Parameters controlling raw string detection, as used by the core strings analysis.
Fields§
§min_string_length: usize§utf8_enabled: bool§utf16_enabled: bool§utf32_enabled: bool§unicode_block_names: Vec<String>Unicode block names as accepted by the analysis.unicode.blocks setting.
Implementations§
Source§impl StringDetectionParameters
impl StringDetectionParameters
Sourcepub fn from_settings(settings: &Settings) -> Self
pub fn from_settings(settings: &Settings) -> Self
Builds parameters from the standard string-analysis settings:
analysis.limits.minStringLength and analysis.unicode.{blocks,utf8,utf16,utf32}.
Trait Implementations§
Source§impl Clone for StringDetectionParameters
impl Clone for StringDetectionParameters
Source§fn clone(&self) -> StringDetectionParameters
fn clone(&self) -> StringDetectionParameters
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 StringDetectionParameters
impl Debug for StringDetectionParameters
Auto Trait Implementations§
impl Freeze for StringDetectionParameters
impl RefUnwindSafe for StringDetectionParameters
impl Send for StringDetectionParameters
impl Sync for StringDetectionParameters
impl Unpin for StringDetectionParameters
impl UnwindSafe for StringDetectionParameters
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