pub struct ThreatDetection {
pub technique: AttackTechnique,
pub severity: ThreatSeverity,
pub matched_text: String,
pub timestamp: DateTime<Utc>,
}Expand description
Threat detection result
Fields§
§technique: AttackTechnique§severity: ThreatSeverity§matched_text: String§timestamp: DateTime<Utc>Implementations§
Source§impl ThreatDetection
impl ThreatDetection
Sourcepub fn to_alert_message(&self) -> String
pub fn to_alert_message(&self) -> String
Generate alert message
Trait Implementations§
Source§impl Clone for ThreatDetection
impl Clone for ThreatDetection
Source§fn clone(&self) -> ThreatDetection
fn clone(&self) -> ThreatDetection
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 ThreatDetection
impl Debug for ThreatDetection
Source§impl<'de> Deserialize<'de> for ThreatDetection
impl<'de> Deserialize<'de> for ThreatDetection
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 ThreatDetection
impl RefUnwindSafe for ThreatDetection
impl Send for ThreatDetection
impl Sync for ThreatDetection
impl Unpin for ThreatDetection
impl UnwindSafe for ThreatDetection
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