pub struct StringAnalysis {
pub entropy: f64,
pub categories: BTreeSet<String>,
pub suspicious_indicators: Vec<SuspiciousIndicator>,
pub indicators_truncated: bool,
pub is_suspicious: bool,
}Expand description
Result of analyzing one string value.
Fields§
§entropy: f64Shannon entropy calculated over UTF-8 bytes.
categories: BTreeSet<String>Deterministically ordered categories assigned by matching patterns.
suspicious_indicators: Vec<SuspiciousIndicator>Bounded suspicious evidence retained in pattern evaluation order.
indicators_truncated: boolWhether suspicious evidence was omitted or declared without retained detail.
is_suspicious: boolWhether at least one suspicious signal was retained, omitted, or declared.
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 (const: unstable) · 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
Source§impl PartialEq for StringAnalysis
impl PartialEq for StringAnalysis
Source§impl Serialize for StringAnalysis
impl Serialize for StringAnalysis
impl StructuralPartialEq for StringAnalysis
Auto Trait Implementations§
impl Freeze for StringAnalysis
impl RefUnwindSafe for StringAnalysis
impl Send for StringAnalysis
impl Sync for StringAnalysis
impl Unpin for StringAnalysis
impl UnsafeUnpin 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