pub struct WafConfig {
pub mode: WafMode,
pub block_threshold: u32,
pub paranoia_level: u8,
pub severity_scores: SeverityScores,
}Fields§
§mode: WafMode§block_threshold: u32§paranoia_level: u8Paranoia level (1..=4). Higher levels activate more (and noisier) rules.
severity_scores: SeverityScoresPoint weight per severity class. Used by the pipeline to score matches.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WafConfig
impl<'de> Deserialize<'de> for WafConfig
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 WafConfig
impl RefUnwindSafe for WafConfig
impl Send for WafConfig
impl Sync for WafConfig
impl Unpin for WafConfig
impl UnsafeUnpin for WafConfig
impl UnwindSafe for WafConfig
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