pub struct StringFilter {
pub min_occurrences: Option<usize>,
pub max_occurrences: Option<usize>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub categories: Option<Vec<String>>,
pub file_paths: Option<Vec<String>>,
pub file_hashes: Option<Vec<String>>,
pub suspicious_only: Option<bool>,
pub regex_pattern: Option<String>,
pub min_entropy: Option<f64>,
pub max_entropy: Option<f64>,
pub date_range: Option<(DateTime<Utc>, DateTime<Utc>)>,
}
Expand description
Filter criteria for string queries
Fields§
§min_occurrences: Option<usize>
Minimum number of occurrences a string must have
max_occurrences: Option<usize>
Maximum number of occurrences a string can have
min_length: Option<usize>
Minimum length of strings to include
max_length: Option<usize>
Maximum length of strings to include
categories: Option<Vec<String>>
Filter by specific categories
file_paths: Option<Vec<String>>
Filter by specific file paths
file_hashes: Option<Vec<String>>
Filter by specific file hashes
suspicious_only: Option<bool>
If true, only return suspicious strings
regex_pattern: Option<String>
Regular expression pattern to match string values
min_entropy: Option<f64>
Minimum entropy score for strings
max_entropy: Option<f64>
Maximum entropy score for strings
date_range: Option<(DateTime<Utc>, DateTime<Utc>)>
Date range filter for when strings were discovered
Trait Implementations§
Source§impl Clone for StringFilter
impl Clone for StringFilter
Source§fn clone(&self) -> StringFilter
fn clone(&self) -> StringFilter
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 StringFilter
impl Debug for StringFilter
Source§impl Default for StringFilter
impl Default for StringFilter
Source§fn default() -> StringFilter
fn default() -> StringFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StringFilter
impl<'de> Deserialize<'de> for StringFilter
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 StringFilter
impl RefUnwindSafe for StringFilter
impl Send for StringFilter
impl Sync for StringFilter
impl Unpin for StringFilter
impl UnwindSafe for StringFilter
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