Enum discord_flows::model::MessageActivityKind
source · pub enum MessageActivityKind {
JOIN,
SPECTATE,
LISTEN,
JOIN_REQUEST,
Unknown,
}
Expand description
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.
Implementations§
Trait Implementations§
source§impl Clone for MessageActivityKind
impl Clone for MessageActivityKind
source§fn clone(&self) -> MessageActivityKind
fn clone(&self) -> MessageActivityKind
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 Debug for MessageActivityKind
impl Debug for MessageActivityKind
source§impl<'de> Deserialize<'de> for MessageActivityKind
impl<'de> Deserialize<'de> for MessageActivityKind
source§fn deserialize<D>(
deserializer: D
) -> Result<MessageActivityKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<MessageActivityKind, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for MessageActivityKind
impl Hash for MessageActivityKind
source§impl Ord for MessageActivityKind
impl Ord for MessageActivityKind
source§fn cmp(&self, other: &MessageActivityKind) -> Ordering
fn cmp(&self, other: &MessageActivityKind) -> 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<MessageActivityKind> for MessageActivityKind
impl PartialEq<MessageActivityKind> for MessageActivityKind
source§fn eq(&self, other: &MessageActivityKind) -> bool
fn eq(&self, other: &MessageActivityKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessageActivityKind> for MessageActivityKind
impl PartialOrd<MessageActivityKind> for MessageActivityKind
source§fn partial_cmp(&self, other: &MessageActivityKind) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageActivityKind) -> 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 MessageActivityKind
impl Serialize for MessageActivityKind
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 MessageActivityKind
impl Eq for MessageActivityKind
impl StructuralEq for MessageActivityKind
impl StructuralPartialEq for MessageActivityKind
Auto Trait Implementations§
impl RefUnwindSafe for MessageActivityKind
impl Send for MessageActivityKind
impl Sync for MessageActivityKind
impl Unpin for MessageActivityKind
impl UnwindSafe for MessageActivityKind
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