#[non_exhaustive]pub struct NotificationRateLimit {
pub period: Option<Duration>,
/* private fields */
}Expand description
Control over the rate of notifications sent to this alerting policy’s notification channels.
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.period: Option<Duration>Not more than one notification per period.
Implementations§
Source§impl NotificationRateLimit
impl NotificationRateLimit
pub fn new() -> Self
Sourcepub fn set_period<T>(self, v: T) -> Self
pub fn set_period<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_period<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_period<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for NotificationRateLimit
impl Clone for NotificationRateLimit
Source§fn clone(&self) -> NotificationRateLimit
fn clone(&self) -> NotificationRateLimit
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 NotificationRateLimit
impl Debug for NotificationRateLimit
Source§impl Default for NotificationRateLimit
impl Default for NotificationRateLimit
Source§fn default() -> NotificationRateLimit
fn default() -> NotificationRateLimit
Returns the “default value” for a type. Read more
Source§impl Message for NotificationRateLimit
impl Message for NotificationRateLimit
Source§impl PartialEq for NotificationRateLimit
impl PartialEq for NotificationRateLimit
impl StructuralPartialEq for NotificationRateLimit
Auto Trait Implementations§
impl Freeze for NotificationRateLimit
impl RefUnwindSafe for NotificationRateLimit
impl Send for NotificationRateLimit
impl Sync for NotificationRateLimit
impl Unpin for NotificationRateLimit
impl UnwindSafe for NotificationRateLimit
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