pub struct ScanResult {
pub id: String,
pub timestamp: DateTime<Utc>,
pub scanner: String,
pub target: String,
pub severity: Severity,
pub category: DetectionCategory,
pub description: String,
pub confidence: f64,
pub action: RecommendedAction,
pub artifact_hash: Option<String>,
}Expand description
Unified result returned by every scanner engine.
Fields§
§id: StringUnique detection ID.
timestamp: DateTime<Utc>When the detection occurred.
scanner: StringWhich scanner produced this result.
target: StringWhat was scanned (file path, PID, connection, etc.).
severity: SeveritySeverity of the detection.
category: DetectionCategoryCategory with detection-specific metadata.
description: StringHuman-readable description.
confidence: f64Confidence score 0.0–1.0.
action: RecommendedActionRecommended action.
artifact_hash: Option<String>SHA-256 of the scanned artifact (if applicable).
Implementations§
Source§impl ScanResult
impl ScanResult
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