#[non_exhaustive]pub struct CustomTargetTypeNotificationEvent {
pub message: String,
pub custom_target_type_uid: String,
pub custom_target_type: String,
pub type: Type,
/* private fields */
}Expand description
Payload proto for “clouddeploy.googleapis.com/customtargettype_notification” Platform Log event that describes the failure to send a custom target type status change 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: StringDebug message for when a notification fails to send.
custom_target_type_uid: StringUnique identifier of the CustomTargetType.
custom_target_type: StringThe name of the CustomTargetType.
type: TypeType of this notification, e.g. for a Pub/Sub failure.
Implementations§
Source§impl CustomTargetTypeNotificationEvent
impl CustomTargetTypeNotificationEvent
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_custom_target_type_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_custom_target_type_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of custom_target_type_uid.
Sourcepub fn set_custom_target_type<T: Into<String>>(self, v: T) -> Self
pub fn set_custom_target_type<T: Into<String>>(self, v: T) -> Self
Sets the value of custom_target_type.
Trait Implementations§
Source§impl Clone for CustomTargetTypeNotificationEvent
impl Clone for CustomTargetTypeNotificationEvent
Source§fn clone(&self) -> CustomTargetTypeNotificationEvent
fn clone(&self) -> CustomTargetTypeNotificationEvent
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 Default for CustomTargetTypeNotificationEvent
impl Default for CustomTargetTypeNotificationEvent
Source§fn default() -> CustomTargetTypeNotificationEvent
fn default() -> CustomTargetTypeNotificationEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for CustomTargetTypeNotificationEvent
impl PartialEq for CustomTargetTypeNotificationEvent
Source§fn eq(&self, other: &CustomTargetTypeNotificationEvent) -> bool
fn eq(&self, other: &CustomTargetTypeNotificationEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CustomTargetTypeNotificationEvent
Auto Trait Implementations§
impl Freeze for CustomTargetTypeNotificationEvent
impl RefUnwindSafe for CustomTargetTypeNotificationEvent
impl Send for CustomTargetTypeNotificationEvent
impl Sync for CustomTargetTypeNotificationEvent
impl Unpin for CustomTargetTypeNotificationEvent
impl UnwindSafe for CustomTargetTypeNotificationEvent
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