pub struct NotificationSettings {
pub all_messages: bool,
pub mentions_only: bool,
pub muted: bool,
pub muted_until: Option<SystemTime>,
}Expand description
Notification settings
Fields§
§all_messages: bool§mentions_only: bool§muted: bool§muted_until: Option<SystemTime>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§const fn clone_from(&mut self, source: &Self)
const 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§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
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