Struct aws_sdk_wafv2::model::OverrideAction
source · [−]#[non_exhaustive]pub struct OverrideAction {
pub count: Option<CountAction>,
pub none: Option<NoneAction>,
}Expand description
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement and ManagedRuleGroupStatement.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead exclude those rules in your rule group reference statement settings.
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.count: Option<CountAction>Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead exclude those rules in your rule group reference statement settings.
none: Option<NoneAction>Don't override the rule group evaluation result. This is the most common setting.
Implementations
sourceimpl OverrideAction
impl OverrideAction
sourcepub fn count(&self) -> Option<&CountAction>
pub fn count(&self) -> Option<&CountAction>
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead exclude those rules in your rule group reference statement settings.
sourcepub fn none(&self) -> Option<&NoneAction>
pub fn none(&self) -> Option<&NoneAction>
Don't override the rule group evaluation result. This is the most common setting.
sourceimpl OverrideAction
impl OverrideAction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OverrideAction
Trait Implementations
sourceimpl Clone for OverrideAction
impl Clone for OverrideAction
sourcefn clone(&self) -> OverrideAction
fn clone(&self) -> OverrideAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OverrideAction
impl Debug for OverrideAction
sourceimpl PartialEq<OverrideAction> for OverrideAction
impl PartialEq<OverrideAction> for OverrideAction
sourcefn eq(&self, other: &OverrideAction) -> bool
fn eq(&self, other: &OverrideAction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OverrideAction) -> bool
fn ne(&self, other: &OverrideAction) -> bool
This method tests for !=.
impl StructuralPartialEq for OverrideAction
Auto Trait Implementations
impl RefUnwindSafe for OverrideAction
impl Send for OverrideAction
impl Sync for OverrideAction
impl Unpin for OverrideAction
impl UnwindSafe for OverrideAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more