#[non_exhaustive]pub struct JobRunNotificationEvent {
pub message: String,
pub job_run: String,
pub pipeline_uid: String,
pub release_uid: String,
pub release: String,
pub rollout_uid: String,
pub rollout: String,
pub target_id: String,
pub type: Type,
/* private fields */
}
Expand description
Payload proto for “clouddeploy.googleapis.com/jobrun_notification” Platform Log event that describes the failure to send JobRun resource update Pub/Sub notification.
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: String
Debug message for when a notification fails to send.
job_run: String
The name of the JobRun
.
pipeline_uid: String
Unique identifier of the DeliveryPipeline
.
release_uid: String
Unique identifier of the Release
.
release: String
The name of the Release
.
rollout_uid: String
Unique identifier of the Rollout
.
rollout: String
The name of the Rollout
.
target_id: String
ID of the Target
.
type: Type
Type of this notification, e.g. for a Pub/Sub failure.
Implementations§
Source§impl JobRunNotificationEvent
impl JobRunNotificationEvent
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
Sets the value of message.
Sourcepub fn set_job_run<T: Into<String>>(self, v: T) -> Self
pub fn set_job_run<T: Into<String>>(self, v: T) -> Self
Sets the value of job_run.
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.
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.
Sourcepub fn set_release<T: Into<String>>(self, v: T) -> Self
pub fn set_release<T: Into<String>>(self, v: T) -> Self
Sets the value of release.
Sourcepub fn set_rollout_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of rollout_uid.
Sourcepub fn set_rollout<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout<T: Into<String>>(self, v: T) -> Self
Sets the value of rollout.
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
Sets the value of target_id.
Trait Implementations§
Source§impl Clone for JobRunNotificationEvent
impl Clone for JobRunNotificationEvent
Source§fn clone(&self) -> JobRunNotificationEvent
fn clone(&self) -> JobRunNotificationEvent
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 JobRunNotificationEvent
impl Debug for JobRunNotificationEvent
Source§impl Default for JobRunNotificationEvent
impl Default for JobRunNotificationEvent
Source§fn default() -> JobRunNotificationEvent
fn default() -> JobRunNotificationEvent
Returns the “default value” for a type. Read more
Source§impl Message for JobRunNotificationEvent
impl Message for JobRunNotificationEvent
Source§impl PartialEq for JobRunNotificationEvent
impl PartialEq for JobRunNotificationEvent
impl StructuralPartialEq for JobRunNotificationEvent
Auto Trait Implementations§
impl Freeze for JobRunNotificationEvent
impl RefUnwindSafe for JobRunNotificationEvent
impl Send for JobRunNotificationEvent
impl Sync for JobRunNotificationEvent
impl Unpin for JobRunNotificationEvent
impl UnwindSafe for JobRunNotificationEvent
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