pub enum NotificationMode {
All,
None,
Mentions,
ImportantOnly,
OnlyMentions,
}Expand description
Global notification policy.
Variants§
All
Notify for all messages.
None
Disable notifications.
Mentions
Notify for mentions.
ImportantOnly
Notify only for important messages.
OnlyMentions
Notify only for direct mentions.
Trait Implementations§
Source§impl Clone for NotificationMode
impl Clone for NotificationMode
Source§fn clone(&self) -> NotificationMode
fn clone(&self) -> NotificationMode
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 moreimpl Copy for NotificationMode
Source§impl Debug for NotificationMode
impl Debug for NotificationMode
Source§impl<'de> Deserialize<'de> for NotificationMode
impl<'de> Deserialize<'de> for NotificationMode
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
impl Eq for NotificationMode
Source§impl PartialEq for NotificationMode
impl PartialEq for NotificationMode
Source§impl Serialize for NotificationMode
impl Serialize for NotificationMode
impl StructuralPartialEq for NotificationMode
Auto Trait Implementations§
impl Freeze for NotificationMode
impl RefUnwindSafe for NotificationMode
impl Send for NotificationMode
impl Sync for NotificationMode
impl Unpin for NotificationMode
impl UnsafeUnpin for NotificationMode
impl UnwindSafe for NotificationMode
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