#[non_exhaustive]pub struct DeploymentUnitProgress {
pub unit_id: String,
pub deployment: String,
pub state: State,
pub state_description: String,
pub deployment_operation_summary: Option<DeploymentOperationSummary>,
pub error: Option<Status>,
pub intent: Intent,
/* private fields */
}Expand description
The progress of a deployment unit provisioning or deprovisioning.
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.unit_id: StringOutput only. The unit id of the deployment unit to be provisioned.
deployment: StringOutput only. The name of the deployment to be provisioned. Format: ‘projects/{project}/locations/{location}/deployments/{deployment}’.
state: StateOutput only. The current step of the deployment unit provisioning.
state_description: StringOutput only. Additional information regarding the current state.
deployment_operation_summary: Option<DeploymentOperationSummary>Output only. The summary of the deployment operation.
error: Option<Status>Output only. Holds the error status of the deployment unit provisioning.
intent: IntentOutput only. The intent of the deployment unit.
Implementations§
Source§impl DeploymentUnitProgress
impl DeploymentUnitProgress
Sourcepub fn set_unit_id<T: Into<String>>(self, v: T) -> Self
pub fn set_unit_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_deployment<T: Into<String>>(self, v: T) -> Self
pub fn set_deployment<T: Into<String>>(self, v: T) -> Self
Sets the value of deployment.
§Example
let x = DeploymentUnitProgress::new().set_deployment(format!("projects/{project_id}/locations/{location_id}/deployments/{deployment_id}"));Sourcepub fn set_state<T: Into<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
use google_cloud_config_v1::model::deployment_unit_progress::State;
let x0 = DeploymentUnitProgress::new().set_state(State::Queued);
let x1 = DeploymentUnitProgress::new().set_state(State::ApplyingDeployment);
let x2 = DeploymentUnitProgress::new().set_state(State::Succeeded);Sourcepub fn set_state_description<T: Into<String>>(self, v: T) -> Self
pub fn set_state_description<T: Into<String>>(self, v: T) -> Self
Sets the value of state_description.
§Example
let x = DeploymentUnitProgress::new().set_state_description("example");Sourcepub fn set_deployment_operation_summary<T>(self, v: T) -> Selfwhere
T: Into<DeploymentOperationSummary>,
pub fn set_deployment_operation_summary<T>(self, v: T) -> Selfwhere
T: Into<DeploymentOperationSummary>,
Sets the value of deployment_operation_summary.
§Example
use google_cloud_config_v1::model::DeploymentOperationSummary;
let x = DeploymentUnitProgress::new().set_deployment_operation_summary(DeploymentOperationSummary::default()/* use setters */);Sourcepub fn set_or_clear_deployment_operation_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeploymentOperationSummary>,
pub fn set_or_clear_deployment_operation_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeploymentOperationSummary>,
Sets or clears the value of deployment_operation_summary.
§Example
use google_cloud_config_v1::model::DeploymentOperationSummary;
let x = DeploymentUnitProgress::new().set_or_clear_deployment_operation_summary(Some(DeploymentOperationSummary::default()/* use setters */));
let x = DeploymentUnitProgress::new().set_or_clear_deployment_operation_summary(None::<DeploymentOperationSummary>);Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sourcepub fn set_intent<T: Into<Intent>>(self, v: T) -> Self
pub fn set_intent<T: Into<Intent>>(self, v: T) -> Self
Sets the value of intent.
§Example
use google_cloud_config_v1::model::deployment_unit_progress::Intent;
let x0 = DeploymentUnitProgress::new().set_intent(Intent::CreateDeployment);
let x1 = DeploymentUnitProgress::new().set_intent(Intent::UpdateDeployment);
let x2 = DeploymentUnitProgress::new().set_intent(Intent::DeleteDeployment);Trait Implementations§
Source§impl Clone for DeploymentUnitProgress
impl Clone for DeploymentUnitProgress
Source§fn clone(&self) -> DeploymentUnitProgress
fn clone(&self) -> DeploymentUnitProgress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeploymentUnitProgress
impl Debug for DeploymentUnitProgress
Source§impl Default for DeploymentUnitProgress
impl Default for DeploymentUnitProgress
Source§fn default() -> DeploymentUnitProgress
fn default() -> DeploymentUnitProgress
Source§impl Message for DeploymentUnitProgress
impl Message for DeploymentUnitProgress
Source§impl PartialEq for DeploymentUnitProgress
impl PartialEq for DeploymentUnitProgress
impl StructuralPartialEq for DeploymentUnitProgress
Auto Trait Implementations§
impl Freeze for DeploymentUnitProgress
impl RefUnwindSafe for DeploymentUnitProgress
impl Send for DeploymentUnitProgress
impl Sync for DeploymentUnitProgress
impl Unpin for DeploymentUnitProgress
impl UnsafeUnpin for DeploymentUnitProgress
impl UnwindSafe for DeploymentUnitProgress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request