pub struct WafConfig {
pub mode: Mode,
pub paranoia: u8,
pub threshold: u32,
pub inspect_body_bytes: usize,
pub max_args: usize,
pub exclude: Vec<Exclusion>,
pub rules: Vec<CustomRule>,
}Expand description
WAF settings.
Fields§
§mode: Mode§paranoia: u81 (default): rules with very few false positives; 2 and 3 add stricter ones.
threshold: u32Anomaly score at which a request is refused (default 5).
inspect_body_bytes: usizeHow much of a body is inspected (default 64 KiB; 0: bodies aren’t).
max_args: usizeMore arguments than this is a match of 920100 (default 255).
exclude: Vec<Exclusion>§rules: Vec<CustomRule>Trait Implementations§
impl StructuralPartialEq for WafConfig
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