pub struct CrsConfig {
pub enabled: bool,
pub files: Vec<String>,
}Expand description
CRS/ModSecurity rule import (B2). Loads SecRule … files at boot and runs the
supported subset as a WafModule. The parser is the OPEN baseline (BOUNDARY.md
§1.7); rules a file uses that fall outside the v1 subset are skipped and reported at
boot, never silently dropped.
Fields§
§enabled: boolDefault OFF (opt-in per deployment).
files: Vec<String>seclang files to import, in include order. Read at boot; an unreadable file is
logged and skipped (the module still loads the readable ones).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrsConfig
impl<'de> Deserialize<'de> for CrsConfig
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 CrsConfig
impl RefUnwindSafe for CrsConfig
impl Send for CrsConfig
impl Sync for CrsConfig
impl Unpin for CrsConfig
impl UnsafeUnpin for CrsConfig
impl UnwindSafe for CrsConfig
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