#[non_exhaustive]pub struct DeploymentOperationMetadata {
pub step: DeploymentStep,
pub apply_results: Option<ApplyResults>,
pub build: String,
pub logs: String,
/* private fields */
}Expand description
Ephemeral metadata content describing the state of a deployment 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.step: DeploymentStepThe current step the deployment operation is running.
apply_results: Option<ApplyResults>Outputs and artifacts from applying a deployment.
build: StringOutput only. Cloud Build instance UUID associated with this operation.
logs: StringOutput only. Location of Deployment operations logs in
gs://{bucket}/{object} format.
Implementations§
Source§impl DeploymentOperationMetadata
impl DeploymentOperationMetadata
pub fn new() -> Self
Sourcepub fn set_step<T: Into<DeploymentStep>>(self, v: T) -> Self
pub fn set_step<T: Into<DeploymentStep>>(self, v: T) -> Self
Sets the value of step.
§Example
ⓘ
use google_cloud_config_v1::model::deployment_operation_metadata::DeploymentStep;
let x0 = DeploymentOperationMetadata::new().set_step(DeploymentStep::PreparingStorageBucket);
let x1 = DeploymentOperationMetadata::new().set_step(DeploymentStep::DownloadingBlueprint);
let x2 = DeploymentOperationMetadata::new().set_step(DeploymentStep::RunningTfInit);Sourcepub fn set_apply_results<T>(self, v: T) -> Selfwhere
T: Into<ApplyResults>,
pub fn set_apply_results<T>(self, v: T) -> Selfwhere
T: Into<ApplyResults>,
Sets the value of apply_results.
§Example
ⓘ
use google_cloud_config_v1::model::ApplyResults;
let x = DeploymentOperationMetadata::new().set_apply_results(ApplyResults::default()/* use setters */);Sourcepub fn set_or_clear_apply_results<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApplyResults>,
pub fn set_or_clear_apply_results<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApplyResults>,
Sets or clears the value of apply_results.
§Example
ⓘ
use google_cloud_config_v1::model::ApplyResults;
let x = DeploymentOperationMetadata::new().set_or_clear_apply_results(Some(ApplyResults::default()/* use setters */));
let x = DeploymentOperationMetadata::new().set_or_clear_apply_results(None::<ApplyResults>);Trait Implementations§
Source§impl Clone for DeploymentOperationMetadata
impl Clone for DeploymentOperationMetadata
Source§fn clone(&self) -> DeploymentOperationMetadata
fn clone(&self) -> DeploymentOperationMetadata
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 DeploymentOperationMetadata
impl Debug for DeploymentOperationMetadata
Source§impl Default for DeploymentOperationMetadata
impl Default for DeploymentOperationMetadata
Source§fn default() -> DeploymentOperationMetadata
fn default() -> DeploymentOperationMetadata
Returns the “default value” for a type. Read more
impl StructuralPartialEq for DeploymentOperationMetadata
Auto Trait Implementations§
impl Freeze for DeploymentOperationMetadata
impl RefUnwindSafe for DeploymentOperationMetadata
impl Send for DeploymentOperationMetadata
impl Sync for DeploymentOperationMetadata
impl Unpin for DeploymentOperationMetadata
impl UnwindSafe for DeploymentOperationMetadata
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