#[non_exhaustive]pub struct NotificationChannelStrategy {
pub notification_channel_names: Vec<String>,
pub renotify_interval: Option<Duration>,
/* private fields */
}Expand description
Control over how the notification channels in notification_channels
are notified when this alert fires, on a per-channel basis.
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.notification_channel_names: Vec<String>The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]renotify_interval: Option<Duration>The frequency at which to send reminder notifications for open incidents.
Implementations§
Source§impl NotificationChannelStrategy
impl NotificationChannelStrategy
pub fn new() -> Self
Sourcepub fn set_notification_channel_names<T, V>(self, v: T) -> Self
pub fn set_notification_channel_names<T, V>(self, v: T) -> Self
Sets the value of notification_channel_names.
§Example
ⓘ
let x = NotificationChannelStrategy::new().set_notification_channel_names(["a", "b", "c"]);Sourcepub fn set_renotify_interval<T>(self, v: T) -> Self
pub fn set_renotify_interval<T>(self, v: T) -> Self
Sets the value of renotify_interval.
§Example
ⓘ
use wkt::Duration;
let x = NotificationChannelStrategy::new().set_renotify_interval(Duration::default()/* use setters */);Sourcepub fn set_or_clear_renotify_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_renotify_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of renotify_interval.
§Example
ⓘ
use wkt::Duration;
let x = NotificationChannelStrategy::new().set_or_clear_renotify_interval(Some(Duration::default()/* use setters */));
let x = NotificationChannelStrategy::new().set_or_clear_renotify_interval(None::<Duration>);Trait Implementations§
Source§impl Clone for NotificationChannelStrategy
impl Clone for NotificationChannelStrategy
Source§fn clone(&self) -> NotificationChannelStrategy
fn clone(&self) -> NotificationChannelStrategy
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 NotificationChannelStrategy
impl Debug for NotificationChannelStrategy
Source§impl Default for NotificationChannelStrategy
impl Default for NotificationChannelStrategy
Source§fn default() -> NotificationChannelStrategy
fn default() -> NotificationChannelStrategy
Returns the “default value” for a type. Read more
impl StructuralPartialEq for NotificationChannelStrategy
Auto Trait Implementations§
impl Freeze for NotificationChannelStrategy
impl RefUnwindSafe for NotificationChannelStrategy
impl Send for NotificationChannelStrategy
impl Sync for NotificationChannelStrategy
impl Unpin for NotificationChannelStrategy
impl UnwindSafe for NotificationChannelStrategy
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