pub enum DefaultMessageNotificationLevel {
All,
Mentions,
Unknown,
}
Expand description
Default message notification level for a guild.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Receive notifications for everything.
Mentions
Receive only mentions.
Unknown
Unknown notification level.
Implementations§
Trait Implementations§
source§impl Clone for DefaultMessageNotificationLevel
impl Clone for DefaultMessageNotificationLevel
source§fn clone(&self) -> DefaultMessageNotificationLevel
fn clone(&self) -> DefaultMessageNotificationLevel
Returns a copy 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<'de> Deserialize<'de> for DefaultMessageNotificationLevel
impl<'de> Deserialize<'de> for DefaultMessageNotificationLevel
source§fn deserialize<D>(
deserializer: D
) -> Result<DefaultMessageNotificationLevel, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<DefaultMessageNotificationLevel, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for DefaultMessageNotificationLevel
impl Ord for DefaultMessageNotificationLevel
source§fn cmp(&self, other: &DefaultMessageNotificationLevel) -> Ordering
fn cmp(&self, other: &DefaultMessageNotificationLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DefaultMessageNotificationLevel> for DefaultMessageNotificationLevel
impl PartialEq<DefaultMessageNotificationLevel> for DefaultMessageNotificationLevel
source§fn eq(&self, other: &DefaultMessageNotificationLevel) -> bool
fn eq(&self, other: &DefaultMessageNotificationLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DefaultMessageNotificationLevel> for DefaultMessageNotificationLevel
impl PartialOrd<DefaultMessageNotificationLevel> for DefaultMessageNotificationLevel
source§fn partial_cmp(
&self,
other: &DefaultMessageNotificationLevel
) -> Option<Ordering>
fn partial_cmp( &self, other: &DefaultMessageNotificationLevel ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for DefaultMessageNotificationLevel
impl Serialize for DefaultMessageNotificationLevel
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
impl Copy for DefaultMessageNotificationLevel
impl Eq for DefaultMessageNotificationLevel
impl StructuralEq for DefaultMessageNotificationLevel
impl StructuralPartialEq for DefaultMessageNotificationLevel
Auto Trait Implementations§
impl RefUnwindSafe for DefaultMessageNotificationLevel
impl Send for DefaultMessageNotificationLevel
impl Sync for DefaultMessageNotificationLevel
impl Unpin for DefaultMessageNotificationLevel
impl UnwindSafe for DefaultMessageNotificationLevel
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