#[non_exhaustive]pub struct FirewallRule {
pub category: Option<String>,
pub condition: Option<String>,
pub desc: Option<String>,
pub duration: Option<i64>,
pub match_details: Option<Vec<String>>,
pub match_location: Option<String>,
pub name: Option<String>,
pub rate_limit: Option<i64>,
pub sensitivity: Option<String>,
pub type: Option<String>,
pub uid: Option<String>,
pub version: Option<String>,
}Expand description
Firewall Rule
The Firewall Rule object represents a specific rule within a firewall policy or event. It contains information about a rule’s configuration, properties, and associated actions that define how network traffic is handled by the firewall.
[] Category: | Name: firewall_rule
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.category: Option<String>Category
The rule category.
optional
condition: Option<String>Condition
The rule trigger condition for the rule. For example: SQL_INJECTION.
optional
desc: Option<String>Description
The description of the rule that generated the event.
optional
duration: Option<i64>Duration Milliseconds
The rule response time duration, usually used for challenge completion time.
optional
match_details: Option<Vec<String>>Match Details
The data in a request that rule matched. For example: ‘[“10”,“and”,“1”]’.
optional
match_location: Option<String>Match Location
The location of the matched data in the source which resulted in the triggered firewall rule. For example: HEADER.
optional
name: Option<String>Name
The name of the rule that generated the event.
recommended
rate_limit: Option<i64>Rate Limit
The rate limit for a rate-based rule.
optional
sensitivity: Option<String>Sensitivity
The sensitivity of the firewall rule in the matched event. For example: HIGH.
optional
type: Option<String>Type
The rule type.
optional
uid: Option<String>Unique ID
The unique identifier of the rule that generated the event.
recommended
version: Option<String>Version
The rule version. For example: 1.1.
optional
Trait Implementations§
Source§impl Clone for FirewallRule
impl Clone for FirewallRule
Source§fn clone(&self) -> FirewallRule
fn clone(&self) -> FirewallRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more