[][src]Enum serenity::model::user::DefaultAvatar

pub enum DefaultAvatar {
    Blurple,
    Grey,
    Green,
    Orange,
    Red,
    // some variants omitted
}

An enum that represents a default avatar.

The default avatar is calculated via the result of discriminator % 5.

The has of the avatar can be retrieved via calling name on the enum.

Variants

Blurple

The avatar when the result is 0.

Grey

The avatar when the result is 1.

Green

The avatar when the result is 2.

Orange

The avatar when the result is 3.

Red

The avatar when the result is 4.

Implementations

impl DefaultAvatar[src]

pub fn name(self) -> Result<String>[src]

Retrieves the String hash of the default avatar.

Trait Implementations

impl Clone for DefaultAvatar[src]

impl Copy for DefaultAvatar[src]

impl Debug for DefaultAvatar[src]

impl<'de> Deserialize<'de> for DefaultAvatar[src]

impl Eq for DefaultAvatar[src]

impl Hash for DefaultAvatar[src]

impl Ord for DefaultAvatar[src]

impl PartialEq<DefaultAvatar> for DefaultAvatar[src]

impl PartialOrd<DefaultAvatar> for DefaultAvatar[src]

impl Serialize for DefaultAvatar[src]

impl StructuralEq for DefaultAvatar[src]

impl StructuralPartialEq for DefaultAvatar[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,