pub struct Rule {
pub id: String,
pub description: String,
pub regex: Option<String>,
pub entropy: Option<f64>,
pub keywords: Vec<String>,
pub path: Option<String>,
pub allowlists: Option<Vec<RuleAllowlist>>,
pub compiled_regex: Option<Regex>,
}Fields§
§id: String§description: String§regex: Option<String>§entropy: Option<f64>§keywords: Vec<String>§path: Option<String>§allowlists: Option<Vec<RuleAllowlist>>§compiled_regex: Option<Regex>Pre-compiled regex (not serialized)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rule
impl<'de> Deserialize<'de> for Rule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RegexCompilable for Rule
impl RegexCompilable for Rule
fn compile_regexes(&mut self) -> CompilationErrors
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin 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