pub struct ThreatPattern {
pub id: String,
pub name: String,
pub pattern: PatternType,
pub severity: f64,
pub category: ThreatCategory,
pub added_at: u64,
pub last_triggered: Option<u64>,
pub trigger_count: u64,
pub source: String,
pub signature: [u8; 32],
}Expand description
A threat pattern with metadata
Fields§
§id: StringUnique pattern ID
name: StringPattern name
pattern: PatternTypeDetection regex or semantic pattern
severity: f64Severity (0.0 - 1.0)
category: ThreatCategoryCategory
added_at: u64When this pattern was added
last_triggered: Option<u64>Last time this pattern was triggered
trigger_count: u64Number of times triggered
source: StringSource of this pattern (e.g., “threat-feed-1”)
signature: [u8; 32]Signature hash
Trait Implementations§
Source§impl Clone for ThreatPattern
impl Clone for ThreatPattern
Source§fn clone(&self) -> ThreatPattern
fn clone(&self) -> ThreatPattern
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 moreAuto Trait Implementations§
impl Freeze for ThreatPattern
impl RefUnwindSafe for ThreatPattern
impl Send for ThreatPattern
impl Sync for ThreatPattern
impl Unpin for ThreatPattern
impl UnwindSafe for ThreatPattern
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