#[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
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.id: StringOutput only. The ID of the Phase.
state: StateOutput only. Current state of the Phase.
skip_message: StringOutput 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
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.
§Example
ⓘ
use google_cloud_deploy_v1::model::DeploymentJobs;
let x = Phase::new().set_deployment_jobs(DeploymentJobs::default()/* use setters */);
assert!(x.deployment_jobs().is_some());
assert!(x.child_rollout_jobs().is_none());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.
§Example
ⓘ
use google_cloud_deploy_v1::model::ChildRolloutJobs;
let x = Phase::new().set_child_rollout_jobs(ChildRolloutJobs::default()/* use setters */);
assert!(x.child_rollout_jobs().is_some());
assert!(x.deployment_jobs().is_none());Trait Implementations§
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnwindSafe for Phase
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