#[non_exhaustive]pub struct AutomationRule {
pub rule: Option<Rule>,
/* private fields */
}
Expand description
AutomationRule
defines the automation activities.
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.rule: Option<Rule>
The configuration of the Automation rule.
Implementations§
Source§impl AutomationRule
impl AutomationRule
pub fn new() -> Self
Sourcepub fn set_rule<T: Into<Option<Rule>>>(self, v: T) -> Self
pub fn set_rule<T: Into<Option<Rule>>>(self, v: T) -> Self
Sets the value of rule.
Note that all the setters affecting rule
are mutually
exclusive.
Sourcepub fn promote_release_rule(&self) -> Option<&Box<PromoteReleaseRule>>
pub fn promote_release_rule(&self) -> Option<&Box<PromoteReleaseRule>>
The value of rule
if it holds a PromoteReleaseRule
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_promote_release_rule<T: Into<Box<PromoteReleaseRule>>>(
self,
v: T,
) -> Self
pub fn set_promote_release_rule<T: Into<Box<PromoteReleaseRule>>>( self, v: T, ) -> Self
Sets the value of rule
to hold a PromoteReleaseRule
.
Note that all the setters affecting rule
are
mutually exclusive.
Sourcepub fn advance_rollout_rule(&self) -> Option<&Box<AdvanceRolloutRule>>
pub fn advance_rollout_rule(&self) -> Option<&Box<AdvanceRolloutRule>>
The value of rule
if it holds a AdvanceRolloutRule
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_advance_rollout_rule<T: Into<Box<AdvanceRolloutRule>>>(
self,
v: T,
) -> Self
pub fn set_advance_rollout_rule<T: Into<Box<AdvanceRolloutRule>>>( self, v: T, ) -> Self
Sets the value of rule
to hold a AdvanceRolloutRule
.
Note that all the setters affecting rule
are
mutually exclusive.
Sourcepub fn repair_rollout_rule(&self) -> Option<&Box<RepairRolloutRule>>
pub fn repair_rollout_rule(&self) -> Option<&Box<RepairRolloutRule>>
The value of rule
if it holds a RepairRolloutRule
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_repair_rollout_rule<T: Into<Box<RepairRolloutRule>>>(
self,
v: T,
) -> Self
pub fn set_repair_rollout_rule<T: Into<Box<RepairRolloutRule>>>( self, v: T, ) -> Self
Sets the value of rule
to hold a RepairRolloutRule
.
Note that all the setters affecting rule
are
mutually exclusive.
Sourcepub fn timed_promote_release_rule(
&self,
) -> Option<&Box<TimedPromoteReleaseRule>>
pub fn timed_promote_release_rule( &self, ) -> Option<&Box<TimedPromoteReleaseRule>>
The value of rule
if it holds a TimedPromoteReleaseRule
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_timed_promote_release_rule<T: Into<Box<TimedPromoteReleaseRule>>>(
self,
v: T,
) -> Self
pub fn set_timed_promote_release_rule<T: Into<Box<TimedPromoteReleaseRule>>>( self, v: T, ) -> Self
Sets the value of rule
to hold a TimedPromoteReleaseRule
.
Note that all the setters affecting rule
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for AutomationRule
impl Clone for AutomationRule
Source§fn clone(&self) -> AutomationRule
fn clone(&self) -> AutomationRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more