pub struct WafConfig {
pub enabled: bool,
pub ip_filter: IpFilterConfig,
pub geo: GeoConfig,
pub rules: RuleConfig,
pub custom_rules: Vec<CustomRule>,
pub bot: BotConfig,
pub ddos: DdosConfig,
pub rate_limit_rules: Vec<RateLimitRule>,
pub geoip_db_path: Option<String>,
}Expand description
Full WAF configuration.
Fields§
§enabled: boolWhether the WAF is enabled.
ip_filter: IpFilterConfig§geo: GeoConfig§rules: RuleConfig§custom_rules: Vec<CustomRule>§bot: BotConfig§ddos: DdosConfig§rate_limit_rules: Vec<RateLimitRule>§geoip_db_path: Option<String>Path to MaxMind GeoLite2-Country.mmdb file.
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