pub struct ScanResult {
pub input_hash: String,
pub detector_results: Vec<DetectorResult>,
pub aggregate_threat: ThreatCategory,
pub aggregate_confidence: f64,
pub aggregate_severity: SecuritySeverity,
pub scan_duration_ms: u64,
pub timestamp: DateTime<Utc>,
}Expand description
Final scan output combining all detector results and their aggregation.
Fields§
§input_hash: String§detector_results: Vec<DetectorResult>§aggregate_threat: ThreatCategory§aggregate_confidence: f64§aggregate_severity: SecuritySeverity§scan_duration_ms: u64§timestamp: DateTime<Utc>Implementations§
Source§impl ScanResult
impl ScanResult
Sourcepub fn to_security_findings(&self) -> Vec<SecurityFinding>
pub fn to_security_findings(&self) -> Vec<SecurityFinding>
Convert every detector result into a SecurityFinding.
Only non-benign results are included.
Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
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 ScanResult
impl Debug for ScanResult
Source§impl<'de> Deserialize<'de> for ScanResult
impl<'de> Deserialize<'de> for ScanResult
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 ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnsafeUnpin for ScanResult
impl UnwindSafe for ScanResult
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