#[non_exhaustive]pub struct StatelessRulesAndCustomActions {
pub stateless_rules: Vec<StatelessRule>,
pub custom_actions: Option<Vec<CustomAction>>,
}
Expand description
Stateless inspection criteria. Each stateless rule group uses exactly one of these data types to define its stateless rules.
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.stateless_rules: Vec<StatelessRule>
Defines the set of stateless rules for use in a stateless rule group.
custom_actions: Option<Vec<CustomAction>>
Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions
specification. You name each custom action that you define, and then you can use it by name in your StatelessRule
RuleDefinition
Actions
specification.
Implementations§
source§impl StatelessRulesAndCustomActions
impl StatelessRulesAndCustomActions
sourcepub fn stateless_rules(&self) -> &[StatelessRule]
pub fn stateless_rules(&self) -> &[StatelessRule]
Defines the set of stateless rules for use in a stateless rule group.
sourcepub fn custom_actions(&self) -> &[CustomAction]
pub fn custom_actions(&self) -> &[CustomAction]
Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions
specification. You name each custom action that you define, and then you can use it by name in your StatelessRule
RuleDefinition
Actions
specification.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_actions.is_none()
.
source§impl StatelessRulesAndCustomActions
impl StatelessRulesAndCustomActions
sourcepub fn builder() -> StatelessRulesAndCustomActionsBuilder
pub fn builder() -> StatelessRulesAndCustomActionsBuilder
Creates a new builder-style object to manufacture StatelessRulesAndCustomActions
.
Trait Implementations§
source§impl Clone for StatelessRulesAndCustomActions
impl Clone for StatelessRulesAndCustomActions
source§fn clone(&self) -> StatelessRulesAndCustomActions
fn clone(&self) -> StatelessRulesAndCustomActions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for StatelessRulesAndCustomActions
impl PartialEq for StatelessRulesAndCustomActions
source§fn eq(&self, other: &StatelessRulesAndCustomActions) -> bool
fn eq(&self, other: &StatelessRulesAndCustomActions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StatelessRulesAndCustomActions
Auto Trait Implementations§
impl Freeze for StatelessRulesAndCustomActions
impl RefUnwindSafe for StatelessRulesAndCustomActions
impl Send for StatelessRulesAndCustomActions
impl Sync for StatelessRulesAndCustomActions
impl Unpin for StatelessRulesAndCustomActions
impl UnwindSafe for StatelessRulesAndCustomActions
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more