#[non_exhaustive]pub struct ConditionalSpecification { /* private fields */ }Expand description
Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
Implementations
sourceimpl ConditionalSpecification
impl ConditionalSpecification
sourcepub fn active(&self) -> Option<bool>
pub fn active(&self) -> Option<bool>
Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.
sourcepub fn conditional_branches(&self) -> Option<&[ConditionalBranch]>
pub fn conditional_branches(&self) -> Option<&[ConditionalBranch]>
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
sourcepub fn default_branch(&self) -> Option<&DefaultConditionalBranch>
pub fn default_branch(&self) -> Option<&DefaultConditionalBranch>
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
sourceimpl ConditionalSpecification
impl ConditionalSpecification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ConditionalSpecification.
Trait Implementations
sourceimpl Clone for ConditionalSpecification
impl Clone for ConditionalSpecification
sourcefn clone(&self) -> ConditionalSpecification
fn clone(&self) -> ConditionalSpecification
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more