#[repr(u8)]pub enum ActivityType {
Playing = 0,
Listening = 2,
Watching = 3,
Competing = 5,
}Expand description
Enum indicating the activity type.
NOTE: Not all six types are implemented by the Discord client itself, so only the four active ones have been implemented in this enum.
Variants§
Trait Implementations§
Source§impl Clone for ActivityType
impl Clone for ActivityType
Source§fn clone(&self) -> ActivityType
fn clone(&self) -> ActivityType
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 moreSource§impl Debug for ActivityType
impl Debug for ActivityType
Source§impl<'de> Deserialize<'de> for ActivityType
impl<'de> Deserialize<'de> for ActivityType
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
Source§impl From<ActivityType> for u8
impl From<ActivityType> for u8
Source§fn from(value: ActivityType) -> Self
fn from(value: ActivityType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActivityType
impl PartialEq for ActivityType
Source§fn eq(&self, other: &ActivityType) -> bool
fn eq(&self, other: &ActivityType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActivityType
impl Serialize for ActivityType
impl Copy for ActivityType
impl Eq for ActivityType
impl StructuralPartialEq for ActivityType
Auto Trait Implementations§
impl Freeze for ActivityType
impl RefUnwindSafe for ActivityType
impl Send for ActivityType
impl Sync for ActivityType
impl Unpin for ActivityType
impl UnsafeUnpin for ActivityType
impl UnwindSafe for ActivityType
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