pub struct StringStatistics {
pub total_unique_strings: usize,
pub total_occurrences: usize,
pub total_files_analyzed: usize,
pub most_common: Vec<(String, usize)>,
pub suspicious_strings: Vec<String>,
pub high_entropy_strings: Vec<(String, f64)>,
pub category_distribution: HashMap<String, usize>,
pub length_distribution: HashMap<String, usize>,
}Expand description
Statistics about tracked strings
Fields§
§total_unique_strings: usizeTotal number of unique strings tracked
total_occurrences: usizeTotal number of string occurrences across all files
total_files_analyzed: usizeTotal number of files that have been analyzed
most_common: Vec<(String, usize)>Most frequently occurring strings with their occurrence counts
suspicious_strings: Vec<String>List of strings flagged as suspicious
high_entropy_strings: Vec<(String, f64)>Strings with high entropy scores and their entropy values
category_distribution: HashMap<String, usize>Distribution of strings across different categories
length_distribution: HashMap<String, usize>Distribution of strings by length ranges
Trait Implementations§
Source§impl Clone for StringStatistics
impl Clone for StringStatistics
Source§fn clone(&self) -> StringStatistics
fn clone(&self) -> StringStatistics
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 StringStatistics
impl Debug for StringStatistics
Source§impl<'de> Deserialize<'de> for StringStatistics
impl<'de> Deserialize<'de> for StringStatistics
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 StringStatistics
impl RefUnwindSafe for StringStatistics
impl Send for StringStatistics
impl Sync for StringStatistics
impl Unpin for StringStatistics
impl UnwindSafe for StringStatistics
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