pub enum DetectRule {
FileExists {
file: String,
negate: bool,
},
FileContains {
file: String,
contains: String,
negate: bool,
},
JsonContains {
file: String,
key_path: String,
value: Option<String>,
negate: bool,
},
TomlContains {
file: String,
key_path: String,
value: Option<String>,
negate: bool,
},
YamlContains {
file: String,
key_path: String,
value: Option<String>,
negate: bool,
},
}Variants§
Trait Implementations§
Source§impl Debug for DetectRule
impl Debug for DetectRule
Source§impl<'de> Deserialize<'de> for DetectRule
impl<'de> Deserialize<'de> for DetectRule
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
Auto Trait Implementations§
impl Freeze for DetectRule
impl RefUnwindSafe for DetectRule
impl Send for DetectRule
impl Sync for DetectRule
impl Unpin for DetectRule
impl UnsafeUnpin for DetectRule
impl UnwindSafe for DetectRule
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