#[non_exhaustive]pub struct Phase {
pub id: String,
pub state: State,
pub skip_message: String,
pub jobs: Option<Jobs>,
/* private fields */
}
Expand description
Phase represents a collection of jobs that are logically grouped together
for a Rollout
.
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.id: String
Output only. The ID of the Phase.
state: State
Output only. Current state of the Phase.
skip_message: String
Output only. Additional information on why the Phase was skipped, if available.
jobs: Option<Jobs>
The job composition of this Phase.
Implementations§
Source§impl Phase
impl Phase
pub fn new() -> Self
Sourcepub fn set_skip_message<T: Into<String>>(self, v: T) -> Self
pub fn set_skip_message<T: Into<String>>(self, v: T) -> Self
Sets the value of skip_message.
Sourcepub fn set_jobs<T: Into<Option<Jobs>>>(self, v: T) -> Self
pub fn set_jobs<T: Into<Option<Jobs>>>(self, v: T) -> Self
Sets the value of jobs.
Note that all the setters affecting jobs
are mutually
exclusive.
Sourcepub fn deployment_jobs(&self) -> Option<&Box<DeploymentJobs>>
pub fn deployment_jobs(&self) -> Option<&Box<DeploymentJobs>>
The value of jobs
if it holds a DeploymentJobs
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_deployment_jobs<T: Into<Box<DeploymentJobs>>>(self, v: T) -> Self
pub fn set_deployment_jobs<T: Into<Box<DeploymentJobs>>>(self, v: T) -> Self
Sets the value of jobs
to hold a DeploymentJobs
.
Note that all the setters affecting jobs
are
mutually exclusive.
Sourcepub fn child_rollout_jobs(&self) -> Option<&Box<ChildRolloutJobs>>
pub fn child_rollout_jobs(&self) -> Option<&Box<ChildRolloutJobs>>
The value of jobs
if it holds a ChildRolloutJobs
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_child_rollout_jobs<T: Into<Box<ChildRolloutJobs>>>(
self,
v: T,
) -> Self
pub fn set_child_rollout_jobs<T: Into<Box<ChildRolloutJobs>>>( self, v: T, ) -> Self
Sets the value of jobs
to hold a ChildRolloutJobs
.
Note that all the setters affecting jobs
are
mutually exclusive.