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: StringUnique name for the pattern
regex: RegexRegular expression
category: StringCategory this pattern belongs to
description: StringDescription of what this pattern matches
is_suspicious: boolWhether matches are considered suspicious
severity: u8Severity 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