pub struct Pattern {
pub name: String,
pub regex: Regex,
pub category: String,
pub description: String,
pub is_suspicious: bool,
pub severity: u8,
}
Expand description
Represents a pattern used for string matching and categorization
Fields§
§name: String
Unique name for the pattern
regex: Regex
Regular expression
category: String
Category this pattern belongs to
description: String
Description of what this pattern matches
is_suspicious: bool
Whether matches are considered suspicious
severity: u8
Severity level (0-10) if suspicious
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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