#[non_exhaustive]pub struct DeployPolicyNotificationEvent {
pub message: String,
pub deploy_policy: String,
pub deploy_policy_uid: String,
pub type: Type,
/* private fields */
}
Expand description
Payload proto for “clouddeploy.googleapis.com/deploypolicy_notification”. Platform Log event that describes the failure to send a pub/sub notification when there is a DeployPolicy status change.
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 deploy policy fails to send a pub/sub notification.
deploy_policy: String
The name of the DeployPolicy
.
deploy_policy_uid: String
Unique identifier of the deploy policy.
type: Type
Type of this notification, e.g. for a Pub/Sub failure.
Implementations§
Source§impl DeployPolicyNotificationEvent
impl DeployPolicyNotificationEvent
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_deploy_policy<T: Into<String>>(self, v: T) -> Self
pub fn set_deploy_policy<T: Into<String>>(self, v: T) -> Self
Sets the value of deploy_policy.
Sourcepub fn set_deploy_policy_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_deploy_policy_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of deploy_policy_uid.
Trait Implementations§
Source§impl Clone for DeployPolicyNotificationEvent
impl Clone for DeployPolicyNotificationEvent
Source§fn clone(&self) -> DeployPolicyNotificationEvent
fn clone(&self) -> DeployPolicyNotificationEvent
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 DeployPolicyNotificationEvent
impl Default for DeployPolicyNotificationEvent
Source§fn default() -> DeployPolicyNotificationEvent
fn default() -> DeployPolicyNotificationEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeployPolicyNotificationEvent
impl PartialEq for DeployPolicyNotificationEvent
Source§fn eq(&self, other: &DeployPolicyNotificationEvent) -> bool
fn eq(&self, other: &DeployPolicyNotificationEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DeployPolicyNotificationEvent
Auto Trait Implementations§
impl Freeze for DeployPolicyNotificationEvent
impl RefUnwindSafe for DeployPolicyNotificationEvent
impl Send for DeployPolicyNotificationEvent
impl Sync for DeployPolicyNotificationEvent
impl Unpin for DeployPolicyNotificationEvent
impl UnwindSafe for DeployPolicyNotificationEvent
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