#[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: StringDebug message for when a deploy policy fails to send a pub/sub notification.
deploy_policy: StringThe name of the DeployPolicy.
deploy_policy_uid: StringUnique identifier of the deploy policy.
type: TypeType of this notification, e.g. for a Pub/Sub failure.
Implementations§
Source§impl DeployPolicyNotificationEvent
impl DeployPolicyNotificationEvent
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_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.
§Example
ⓘ
let x = DeployPolicyNotificationEvent::new().set_deploy_policy("example");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.
§Example
ⓘ
let x = DeployPolicyNotificationEvent::new().set_deploy_policy_uid("example");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 = DeployPolicyNotificationEvent::new().set_type(Type::PubsubNotificationFailure);
let x1 = DeployPolicyNotificationEvent::new().set_type(Type::ResourceStateChange);
let x2 = DeployPolicyNotificationEvent::new().set_type(Type::ProcessAborted);Trait Implementations§
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request