pub struct AnalysisResult {
pub findings: Vec<Finding>,
pub deobfuscated: bool,
pub rules_applied: usize,
pub metadata: AnalysisMetadata,
}Expand description
Result of analyzing content with a detection engine.
Fields§
§findings: Vec<Finding>Findings from the analysis.
deobfuscated: boolWhether the content was deobfuscated.
rules_applied: usizeNumber of rules applied.
metadata: AnalysisMetadataAnalysis metadata.
Implementations§
Source§impl AnalysisResult
impl AnalysisResult
Sourcepub fn with_findings(findings: Vec<Finding>) -> Self
pub fn with_findings(findings: Vec<Finding>) -> Self
Create a result with findings.
Sourcepub fn has_findings(&self) -> bool
pub fn has_findings(&self) -> bool
Check if any findings were detected.
Sourcepub fn highest_severity(&self) -> Option<Severity>
pub fn highest_severity(&self) -> Option<Severity>
Get the highest severity finding.
Trait Implementations§
Source§impl Clone for AnalysisResult
impl Clone for AnalysisResult
Source§fn clone(&self) -> AnalysisResult
fn clone(&self) -> AnalysisResult
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 AnalysisResult
impl Debug for AnalysisResult
Source§impl<'de> Deserialize<'de> for AnalysisResult
impl<'de> Deserialize<'de> for AnalysisResult
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 AnalysisResult
impl RefUnwindSafe for AnalysisResult
impl Send for AnalysisResult
impl Sync for AnalysisResult
impl Unpin for AnalysisResult
impl UnwindSafe for AnalysisResult
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