pub struct NotificationChannelPreferences {
pub mobile: Option<bool>,
pub desktop: Option<bool>,
pub email: Option<bool>,
pub slack: Option<bool>,
}Expand description
A user’s notification channel preferences, indicating if a channel is enabled or not
Fields§
§mobile: Option<bool>Whether notifications are currently enabled for mobile.
desktop: Option<bool>Whether notifications are currently enabled for desktop.
email: Option<bool>Whether notifications are currently enabled for email.
slack: Option<bool>Whether notifications are currently enabled for Slack.
Trait Implementations§
Source§impl Clone for NotificationChannelPreferences
impl Clone for NotificationChannelPreferences
Source§fn clone(&self) -> NotificationChannelPreferences
fn clone(&self) -> NotificationChannelPreferences
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 NotificationChannelPreferences
impl Default for NotificationChannelPreferences
Source§fn default() -> NotificationChannelPreferences
fn default() -> NotificationChannelPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationChannelPreferences
impl<'de> Deserialize<'de> for NotificationChannelPreferences
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
Auto Trait Implementations§
impl Freeze for NotificationChannelPreferences
impl RefUnwindSafe for NotificationChannelPreferences
impl Send for NotificationChannelPreferences
impl Sync for NotificationChannelPreferences
impl Unpin for NotificationChannelPreferences
impl UnwindSafe for NotificationChannelPreferences
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