#[non_exhaustive]pub struct TargetNotificationEvent {
pub message: String,
pub target: String,
pub type: Type,
/* private fields */
}Expand description
Payload proto for “clouddeploy.googleapis.com/target_notification” Platform Log event that describes the failure to send target 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.
target: StringThe name of the Target.
type: TypeType of this notification, e.g. for a Pub/Sub failure.
Implementations§
Source§impl TargetNotificationEvent
impl TargetNotificationEvent
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_target<T: Into<String>>(self, v: T) -> Self
pub fn set_target<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of r#type.
§Example
ⓘ
use google_cloud_deploy_v1::model::Type;
let x0 = TargetNotificationEvent::new().set_type(Type::PubsubNotificationFailure);
let x1 = TargetNotificationEvent::new().set_type(Type::ResourceStateChange);
let x2 = TargetNotificationEvent::new().set_type(Type::ProcessAborted);Trait Implementations§
Source§impl Clone for TargetNotificationEvent
impl Clone for TargetNotificationEvent
Source§fn clone(&self) -> TargetNotificationEvent
fn clone(&self) -> TargetNotificationEvent
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 TargetNotificationEvent
impl Debug for TargetNotificationEvent
Source§impl Default for TargetNotificationEvent
impl Default for TargetNotificationEvent
Source§fn default() -> TargetNotificationEvent
fn default() -> TargetNotificationEvent
Returns the “default value” for a type. Read more
Source§impl Message for TargetNotificationEvent
impl Message for TargetNotificationEvent
Source§impl PartialEq for TargetNotificationEvent
impl PartialEq for TargetNotificationEvent
impl StructuralPartialEq for TargetNotificationEvent
Auto Trait Implementations§
impl Freeze for TargetNotificationEvent
impl RefUnwindSafe for TargetNotificationEvent
impl Send for TargetNotificationEvent
impl Sync for TargetNotificationEvent
impl Unpin for TargetNotificationEvent
impl UnwindSafe for TargetNotificationEvent
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