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