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
Fixed(i32)
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
Dynamic badge pattern defined by two SVG paths.
Fields of Dynamic
path1: String | The first SVG path string. |
path2: String | The second SVG path string. |
Trait Implementations
impl Clone for BadgeType
[src]
fn clone(&self) -> BadgeType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for BadgeType
[src]
impl PartialEq for BadgeType
[src]
fn eq(&self, __arg_0: &BadgeType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BadgeType) -> bool
[src]
This method tests for !=
.
impl Hash for BadgeType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more