pub struct StringAnalysis {
pub entropy: f64,
pub categories: HashSet<String>,
pub suspicious_indicators: Vec<SuspiciousIndicator>,
pub metadata: StringMetadata,
pub is_suspicious: bool,
}
Expand description
Result of analyzing a string
Fields§
§entropy: f64
Shannon entropy of the string
categories: HashSet<String>
Categories the string belongs to
suspicious_indicators: Vec<SuspiciousIndicator>
Suspicious indicators found
metadata: StringMetadata
Additional metadata
is_suspicious: bool
Whether the string is considered suspicious overall
Trait Implementations§
Source§impl Clone for StringAnalysis
impl Clone for StringAnalysis
Source§fn clone(&self) -> StringAnalysis
fn clone(&self) -> StringAnalysis
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 StringAnalysis
impl Debug for StringAnalysis
Source§impl<'de> Deserialize<'de> for StringAnalysis
impl<'de> Deserialize<'de> for StringAnalysis
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 StringAnalysis
impl RefUnwindSafe for StringAnalysis
impl Send for StringAnalysis
impl Sync for StringAnalysis
impl Unpin for StringAnalysis
impl UnwindSafe for StringAnalysis
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