#[non_exhaustive]pub struct PromoteReleaseOperation {
pub target_id: String,
pub wait: Option<Duration>,
pub rollout: String,
pub phase: String,
/* private fields */
}
Expand description
Contains the information of an automated promote-release operation.
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.target_id: String
Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.
wait: Option<Duration>
Output only. How long the operation will be paused.
rollout: String
Output only. The name of the rollout that initiates the AutomationRun
.
phase: String
Output only. The starting phase of the rollout created by this operation.
Implementations§
Source§impl PromoteReleaseOperation
impl PromoteReleaseOperation
pub fn new() -> Self
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
Sets the value of target_id.
Sourcepub fn set_or_clear_wait<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_wait<T>(self, v: Option<T>) -> Self
Sets or clears the value of wait.
Sourcepub fn set_rollout<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout<T: Into<String>>(self, v: T) -> Self
Sets the value of rollout.
Trait Implementations§
Source§impl Clone for PromoteReleaseOperation
impl Clone for PromoteReleaseOperation
Source§fn clone(&self) -> PromoteReleaseOperation
fn clone(&self) -> PromoteReleaseOperation
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 PromoteReleaseOperation
impl Debug for PromoteReleaseOperation
Source§impl Default for PromoteReleaseOperation
impl Default for PromoteReleaseOperation
Source§fn default() -> PromoteReleaseOperation
fn default() -> PromoteReleaseOperation
Returns the “default value” for a type. Read more
Source§impl Message for PromoteReleaseOperation
impl Message for PromoteReleaseOperation
Source§impl PartialEq for PromoteReleaseOperation
impl PartialEq for PromoteReleaseOperation
impl StructuralPartialEq for PromoteReleaseOperation
Auto Trait Implementations§
impl Freeze for PromoteReleaseOperation
impl RefUnwindSafe for PromoteReleaseOperation
impl Send for PromoteReleaseOperation
impl Sync for PromoteReleaseOperation
impl Unpin for PromoteReleaseOperation
impl UnwindSafe for PromoteReleaseOperation
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