#[non_exhaustive]pub struct Metadata {
pub cloud_run: Option<CloudRunMetadata>,
pub automation: Option<AutomationRolloutMetadata>,
pub custom: Option<CustomMetadata>,
/* private fields */
}
Expand description
Metadata includes information associated with 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.cloud_run: Option<CloudRunMetadata>
Output only. The name of the Cloud Run Service that is associated with a
Rollout
.
automation: Option<AutomationRolloutMetadata>
Output only. AutomationRolloutMetadata contains the information about the interactions between Automation service and this rollout.
custom: Option<CustomMetadata>
Output only. Custom metadata provided by user-defined Rollout
operations.
Implementations§
Source§impl Metadata
impl Metadata
pub fn new() -> Self
Sourcepub fn set_cloud_run<T>(self, v: T) -> Selfwhere
T: Into<CloudRunMetadata>,
pub fn set_cloud_run<T>(self, v: T) -> Selfwhere
T: Into<CloudRunMetadata>,
Sets the value of cloud_run.
Sourcepub fn set_or_clear_cloud_run<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudRunMetadata>,
pub fn set_or_clear_cloud_run<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudRunMetadata>,
Sets or clears the value of cloud_run.
Sourcepub fn set_automation<T>(self, v: T) -> Selfwhere
T: Into<AutomationRolloutMetadata>,
pub fn set_automation<T>(self, v: T) -> Selfwhere
T: Into<AutomationRolloutMetadata>,
Sets the value of automation.
Sourcepub fn set_or_clear_automation<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutomationRolloutMetadata>,
pub fn set_or_clear_automation<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutomationRolloutMetadata>,
Sets or clears the value of automation.
Sourcepub fn set_custom<T>(self, v: T) -> Selfwhere
T: Into<CustomMetadata>,
pub fn set_custom<T>(self, v: T) -> Selfwhere
T: Into<CustomMetadata>,
Sets the value of custom.
Sourcepub fn set_or_clear_custom<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomMetadata>,
pub fn set_or_clear_custom<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomMetadata>,
Sets or clears the value of custom.
Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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