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

pub enum DefaultAvatar {
    Blurple,
    Grey,
    Green,
    Orange,
    Red,
}

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

The avatar when the result is 0.

The avatar when the result is 1.

The avatar when the result is 2.

The avatar when the result is 3.

The avatar when the result is 4.

Methods

impl DefaultAvatar
[src]

Retrieves the String hash of the default avatar.

Trait Implementations

impl Copy for DefaultAvatar
[src]

impl Clone for DefaultAvatar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DefaultAvatar
[src]

Formats the value using the given formatter. Read more

impl Hash for DefaultAvatar
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for DefaultAvatar
[src]

impl PartialEq for DefaultAvatar
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for DefaultAvatar
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for DefaultAvatar
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations