pub struct NotificationSettings {
pub desktop_notifications: Option<bool>,
pub in_app_notifications: Option<bool>,
pub email_notifications: Option<bool>,
pub custom_message: Option<String>,
}Expand description
Notification settings for human-in-the-loop
Fields§
§desktop_notifications: Option<bool>Whether to show desktop notifications
in_app_notifications: Option<bool>Whether to show in-app notifications
email_notifications: Option<bool>Whether to send email notifications
custom_message: Option<String>Custom notification message
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 · 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<'de> Deserialize<'de> for NotificationSettings
impl<'de> Deserialize<'de> for NotificationSettings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NotificationSettings
impl Serialize for NotificationSettings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for NotificationSettings
impl RefUnwindSafe for NotificationSettings
impl Send for NotificationSettings
impl Sync for NotificationSettings
impl Unpin 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