pub struct Rule {
pub id: &'static str,
pub pattern: &'static str,
pub severity: Severity,
pub paranoia: u8,
}Expand description
A single detection rule: an id (used as rule_id in the emitted decision),
a regex pattern compiled into a RegexSet at module init time, a severity
class (mapped to points by the pipeline), and the minimum paranoia level at
which the rule becomes active.
Fields§
§id: &'static str§pattern: &'static str§severity: Severity§paranoia: u8Minimum configured paranoia level (1..=4) for this rule to be compiled.
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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