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

pub enum BadgeType {
    Fixed(i32),
    Dynamic {
        path1: String,
        path2: String,
    },
}

Badge type - what shape a badge should be.

Variants

Specific built-in badge pattern. Each number from 1 to 24 inclusive represents two SVG paths built in to the Screeps client.

These paths can be scraped from the client, but are not included here for licensing reasons.

Dynamic badge pattern defined by two SVG paths.

Fields of Dynamic

The first SVG path string.

The second SVG path string.

Trait Implementations

impl Clone for BadgeType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BadgeType
[src]

impl PartialEq for BadgeType
[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 BadgeType
[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 BadgeType
[src]

[src]

Formats the value using the given formatter.