pub struct Pattern {
pub name: String,
pub regex: Regex,
pub category: String,
pub description: String,
pub is_suspicious: bool,
pub severity: u8,
}Expand description
A validated, compiled pattern used for analysis and categorization.
Fields§
§name: StringUnique name for the pattern.
regex: RegexCompiled regular expression.
category: StringCategory assigned when the pattern matches.
description: StringHuman-readable explanation of the match.
is_suspicious: boolWhether a match contributes a suspicious indicator.
severity: u8Severity from 0 through 10 when the match is 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 UnsafeUnpin 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