Enum screeps_api::data::users::BadgeColor [] [src]

pub enum BadgeColor {
    Set(i32),
    Hex(String),
}

Badge color - what color a specific part of a badge should be.

Variants

Specific built-in badge color. Each number from 0 to 79 inclusive represents a specific color.

How these colors are generated can be figured out from the client, but this logic is not included here for licensing reasons.

Hex badge color.

Trait Implementations

impl Clone for BadgeColor
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BadgeColor
[src]

impl PartialEq for BadgeColor
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for BadgeColor
[src]

[src]

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

1.3.0
[src]

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

impl Debug for BadgeColor
[src]

[src]

Formats the value using the given formatter.