#[non_exhaustive]pub struct TimedPromoteReleaseCondition {
pub next_promotion_time: Option<Timestamp>,
pub targets_list: Vec<Targets>,
/* private fields */
}
Expand description
TimedPromoteReleaseCondition
contains conditions specific to an Automation
with a Timed Promote Release rule defined.
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.next_promotion_time: Option<Timestamp>
Output only. When the next scheduled promotion(s) will occur.
targets_list: Vec<Targets>
Output only. A list of targets involved in the upcoming timed promotion(s).
Implementations§
Source§impl TimedPromoteReleaseCondition
impl TimedPromoteReleaseCondition
pub fn new() -> Self
Sourcepub fn set_next_promotion_time<T>(self, v: T) -> Self
pub fn set_next_promotion_time<T>(self, v: T) -> Self
Sets the value of next_promotion_time.
Sourcepub fn set_or_clear_next_promotion_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_next_promotion_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of next_promotion_time.
Sourcepub fn set_targets_list<T, V>(self, v: T) -> Self
pub fn set_targets_list<T, V>(self, v: T) -> Self
Sets the value of targets_list.
Trait Implementations§
Source§impl Clone for TimedPromoteReleaseCondition
impl Clone for TimedPromoteReleaseCondition
Source§fn clone(&self) -> TimedPromoteReleaseCondition
fn clone(&self) -> TimedPromoteReleaseCondition
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 TimedPromoteReleaseCondition
impl Debug for TimedPromoteReleaseCondition
Source§impl Default for TimedPromoteReleaseCondition
impl Default for TimedPromoteReleaseCondition
Source§fn default() -> TimedPromoteReleaseCondition
fn default() -> TimedPromoteReleaseCondition
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimedPromoteReleaseCondition
impl PartialEq for TimedPromoteReleaseCondition
Source§fn eq(&self, other: &TimedPromoteReleaseCondition) -> bool
fn eq(&self, other: &TimedPromoteReleaseCondition) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TimedPromoteReleaseCondition
Auto Trait Implementations§
impl Freeze for TimedPromoteReleaseCondition
impl RefUnwindSafe for TimedPromoteReleaseCondition
impl Send for TimedPromoteReleaseCondition
impl Sync for TimedPromoteReleaseCondition
impl Unpin for TimedPromoteReleaseCondition
impl UnwindSafe for TimedPromoteReleaseCondition
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