#[non_exhaustive]pub struct AutomationRuleCondition {
pub targets_present_condition: Option<TargetsPresentCondition>,
pub rule_type_condition: Option<RuleTypeCondition>,
/* private fields */
}
Expand description
AutomationRuleCondition
contains conditions relevant to an
Automation
rule.
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.targets_present_condition: Option<TargetsPresentCondition>
Optional. Details around targets enumerated in the rule.
rule_type_condition: Option<RuleTypeCondition>
Details specific to the automation rule type.
Implementations§
Source§impl AutomationRuleCondition
impl AutomationRuleCondition
pub fn new() -> Self
Sourcepub fn set_targets_present_condition<T>(self, v: T) -> Selfwhere
T: Into<TargetsPresentCondition>,
pub fn set_targets_present_condition<T>(self, v: T) -> Selfwhere
T: Into<TargetsPresentCondition>,
Sets the value of targets_present_condition.
Sourcepub fn set_or_clear_targets_present_condition<T>(self, v: Option<T>) -> Selfwhere
T: Into<TargetsPresentCondition>,
pub fn set_or_clear_targets_present_condition<T>(self, v: Option<T>) -> Selfwhere
T: Into<TargetsPresentCondition>,
Sets or clears the value of targets_present_condition.
Sourcepub fn set_rule_type_condition<T: Into<Option<RuleTypeCondition>>>(
self,
v: T,
) -> Self
pub fn set_rule_type_condition<T: Into<Option<RuleTypeCondition>>>( self, v: T, ) -> Self
Sets the value of rule_type_condition.
Note that all the setters affecting rule_type_condition
are mutually
exclusive.
Sourcepub fn timed_promote_release_condition(
&self,
) -> Option<&Box<TimedPromoteReleaseCondition>>
pub fn timed_promote_release_condition( &self, ) -> Option<&Box<TimedPromoteReleaseCondition>>
The value of rule_type_condition
if it holds a TimedPromoteReleaseCondition
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_timed_promote_release_condition<T: Into<Box<TimedPromoteReleaseCondition>>>(
self,
v: T,
) -> Self
pub fn set_timed_promote_release_condition<T: Into<Box<TimedPromoteReleaseCondition>>>( self, v: T, ) -> Self
Sets the value of rule_type_condition
to hold a TimedPromoteReleaseCondition
.
Note that all the setters affecting rule_type_condition
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for AutomationRuleCondition
impl Clone for AutomationRuleCondition
Source§fn clone(&self) -> AutomationRuleCondition
fn clone(&self) -> AutomationRuleCondition
Returns a duplicate 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 Debug for AutomationRuleCondition
impl Debug for AutomationRuleCondition
Source§impl Default for AutomationRuleCondition
impl Default for AutomationRuleCondition
Source§fn default() -> AutomationRuleCondition
fn default() -> AutomationRuleCondition
Returns the “default value” for a type. Read more
Source§impl Message for AutomationRuleCondition
impl Message for AutomationRuleCondition
Source§impl PartialEq for AutomationRuleCondition
impl PartialEq for AutomationRuleCondition
impl StructuralPartialEq for AutomationRuleCondition
Auto Trait Implementations§
impl Freeze for AutomationRuleCondition
impl RefUnwindSafe for AutomationRuleCondition
impl Send for AutomationRuleCondition
impl Sync for AutomationRuleCondition
impl Unpin for AutomationRuleCondition
impl UnwindSafe for AutomationRuleCondition
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