Enum discord_sdk::activity::ActivityKind
source · #[repr(u8)]pub enum ActivityKind {
Playing = 0,
Streaming = 1,
Listening = 2,
Watching = 3,
Custom = 4,
Competing = 5,
}
Variants§
Trait Implementations§
source§impl Clone for ActivityKind
impl Clone for ActivityKind
source§fn clone(&self) -> ActivityKind
fn clone(&self) -> ActivityKind
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 ActivityKind
impl Debug for ActivityKind
source§impl Default for ActivityKind
impl Default for ActivityKind
source§impl<'de> Deserialize<'de> for ActivityKind
impl<'de> Deserialize<'de> for ActivityKind
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 PartialEq for ActivityKind
impl PartialEq for ActivityKind
source§fn eq(&self, other: &ActivityKind) -> bool
fn eq(&self, other: &ActivityKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ActivityKind
impl Serialize for ActivityKind
impl Copy for ActivityKind
impl Eq for ActivityKind
impl StructuralPartialEq for ActivityKind
Auto Trait Implementations§
impl RefUnwindSafe for ActivityKind
impl Send for ActivityKind
impl Sync for ActivityKind
impl Unpin for ActivityKind
impl UnwindSafe for ActivityKind
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