#[repr(u8)]pub enum DefaultMessageNotifications {
AllMessages = 0,
OnlyMentions = 1,
}Expand description
A guild’s default message notification setting.
Variants§
AllMessages = 0
A user will be notified whenever a new message is sent in the guild.
OnlyMentions = 1
A user will only be notified when they are mentioned.
Trait Implementations§
Source§impl Clone for DefaultMessageNotifications
impl Clone for DefaultMessageNotifications
Source§fn clone(&self) -> DefaultMessageNotifications
fn clone(&self) -> DefaultMessageNotifications
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 DefaultMessageNotifications
impl Debug for DefaultMessageNotifications
Source§impl<'de> Deserialize<'de> for DefaultMessageNotifications
impl<'de> Deserialize<'de> for DefaultMessageNotifications
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 DefaultMessageNotifications
impl RefUnwindSafe for DefaultMessageNotifications
impl Send for DefaultMessageNotifications
impl Sync for DefaultMessageNotifications
impl Unpin for DefaultMessageNotifications
impl UnwindSafe for DefaultMessageNotifications
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