#[non_exhaustive]pub struct RuleGroupSourceStatefulRulesDetails {
pub action: Option<String>,
pub header: Option<RuleGroupSourceStatefulRulesHeaderDetails>,
pub rule_options: Option<Vec<RuleGroupSourceStatefulRulesOptionsDetails>>,
}
Expand description
A Suricata rule specification.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.action: Option<String>
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.
header: Option<RuleGroupSourceStatefulRulesHeaderDetails>
The stateful inspection criteria for the rule.
rule_options: Option<Vec<RuleGroupSourceStatefulRulesOptionsDetails>>
Additional options for the rule.
Implementations§
source§impl RuleGroupSourceStatefulRulesDetails
impl RuleGroupSourceStatefulRulesDetails
sourcepub fn action(&self) -> Option<&str>
pub fn action(&self) -> Option<&str>
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.
sourcepub fn header(&self) -> Option<&RuleGroupSourceStatefulRulesHeaderDetails>
pub fn header(&self) -> Option<&RuleGroupSourceStatefulRulesHeaderDetails>
The stateful inspection criteria for the rule.
sourcepub fn rule_options(&self) -> &[RuleGroupSourceStatefulRulesOptionsDetails]
pub fn rule_options(&self) -> &[RuleGroupSourceStatefulRulesOptionsDetails]
Additional options for the rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rule_options.is_none()
.
source§impl RuleGroupSourceStatefulRulesDetails
impl RuleGroupSourceStatefulRulesDetails
sourcepub fn builder() -> RuleGroupSourceStatefulRulesDetailsBuilder
pub fn builder() -> RuleGroupSourceStatefulRulesDetailsBuilder
Creates a new builder-style object to manufacture RuleGroupSourceStatefulRulesDetails
.
Trait Implementations§
source§impl Clone for RuleGroupSourceStatefulRulesDetails
impl Clone for RuleGroupSourceStatefulRulesDetails
source§fn clone(&self) -> RuleGroupSourceStatefulRulesDetails
fn clone(&self) -> RuleGroupSourceStatefulRulesDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for RuleGroupSourceStatefulRulesDetails
impl PartialEq for RuleGroupSourceStatefulRulesDetails
source§fn eq(&self, other: &RuleGroupSourceStatefulRulesDetails) -> bool
fn eq(&self, other: &RuleGroupSourceStatefulRulesDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleGroupSourceStatefulRulesDetails
Auto Trait Implementations§
impl RefUnwindSafe for RuleGroupSourceStatefulRulesDetails
impl Send for RuleGroupSourceStatefulRulesDetails
impl Sync for RuleGroupSourceStatefulRulesDetails
impl Unpin for RuleGroupSourceStatefulRulesDetails
impl UnwindSafe for RuleGroupSourceStatefulRulesDetails
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.