pub struct NotificationSettings {
pub status: Option<Status>,
pub time_in_minutes: Option<i32>,
pub webhook_url: Option<String>,
pub email_recipient: Option<String>,
pub notification_locale: Option<String>,
}Expand description
Notification settings for a schedule.
Fields§
§status: Option<Status>If notifications are enabled for this schedule (i.e. Enabled, Disabled).
time_in_minutes: Option<i32>Time in minutes before event at which notification will be sent.
webhook_url: Option<String>The webhook URL to which the notification will be sent.
email_recipient: Option<String>The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
notification_locale: Option<String>The locale to use when sending a notification (fallback for unsupported languages is EN).
Implementations§
Trait Implementations§
Source§impl Clone for NotificationSettings
impl Clone for NotificationSettings
Source§fn clone(&self) -> NotificationSettings
fn clone(&self) -> NotificationSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationSettings
impl Debug for NotificationSettings
Source§impl Default for NotificationSettings
impl Default for NotificationSettings
Source§fn default() -> NotificationSettings
fn default() -> NotificationSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationSettings
impl<'de> Deserialize<'de> for NotificationSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NotificationSettings
impl PartialEq for NotificationSettings
Source§fn eq(&self, other: &NotificationSettings) -> bool
fn eq(&self, other: &NotificationSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationSettings
impl Serialize for NotificationSettings
impl StructuralPartialEq for NotificationSettings
Auto Trait Implementations§
impl Freeze for NotificationSettings
impl RefUnwindSafe for NotificationSettings
impl Send for NotificationSettings
impl Sync for NotificationSettings
impl Unpin for NotificationSettings
impl UnsafeUnpin for NotificationSettings
impl UnwindSafe for NotificationSettings
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