#[non_exhaustive]pub struct RolloutUpdateEvent {
pub message: String,
pub pipeline_uid: String,
pub release_uid: String,
pub release: String,
pub rollout: String,
pub target_id: String,
pub type: Type,
pub rollout_update_type: RolloutUpdateType,
/* private fields */
}Expand description
Payload proto for “clouddeploy.googleapis.com/rollout_update” Platform Log event that describes the rollout update event.
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.message: StringDebug message for when a rollout update event occurs.
pipeline_uid: StringUnique identifier of the pipeline.
release_uid: StringUnique identifier of the release.
release: StringThe name of the Release.
rollout: StringThe name of the rollout. rollout_uid is not in this log message because we write some of these log messages at rollout creation time, before we’ve generated the uid.
target_id: StringID of the target.
type: TypeType of this notification, e.g. for a rollout update event.
rollout_update_type: RolloutUpdateTypeThe type of the rollout update.
Implementations§
Source§impl RolloutUpdateEvent
impl RolloutUpdateEvent
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_pipeline_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_pipeline_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of pipeline_uid.
§Example
ⓘ
let x = RolloutUpdateEvent::new().set_pipeline_uid("example");Sourcepub fn set_release_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_release_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of release_uid.
§Example
ⓘ
let x = RolloutUpdateEvent::new().set_release_uid("example");Sourcepub fn set_release<T: Into<String>>(self, v: T) -> Self
pub fn set_release<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_rollout<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_rollout_update_type<T: Into<RolloutUpdateType>>(self, v: T) -> Self
pub fn set_rollout_update_type<T: Into<RolloutUpdateType>>(self, v: T) -> Self
Sets the value of rollout_update_type.
§Example
ⓘ
use google_cloud_deploy_v1::model::rollout_update_event::RolloutUpdateType;
let x0 = RolloutUpdateEvent::new().set_rollout_update_type(RolloutUpdateType::Pending);
let x1 = RolloutUpdateEvent::new().set_rollout_update_type(RolloutUpdateType::PendingRelease);
let x2 = RolloutUpdateEvent::new().set_rollout_update_type(RolloutUpdateType::InProgress);Trait Implementations§
Source§impl Clone for RolloutUpdateEvent
impl Clone for RolloutUpdateEvent
Source§fn clone(&self) -> RolloutUpdateEvent
fn clone(&self) -> RolloutUpdateEvent
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 RolloutUpdateEvent
impl Debug for RolloutUpdateEvent
Source§impl Default for RolloutUpdateEvent
impl Default for RolloutUpdateEvent
Source§fn default() -> RolloutUpdateEvent
fn default() -> RolloutUpdateEvent
Returns the “default value” for a type. Read more
Source§impl Message for RolloutUpdateEvent
impl Message for RolloutUpdateEvent
Source§impl PartialEq for RolloutUpdateEvent
impl PartialEq for RolloutUpdateEvent
impl StructuralPartialEq for RolloutUpdateEvent
Auto Trait Implementations§
impl Freeze for RolloutUpdateEvent
impl RefUnwindSafe for RolloutUpdateEvent
impl Send for RolloutUpdateEvent
impl Sync for RolloutUpdateEvent
impl Unpin for RolloutUpdateEvent
impl UnwindSafe for RolloutUpdateEvent
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