1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
use serde::{Deserialize, Serialize};
use strum::{Display, EnumCount, EnumIter, EnumString};
/// Capability.
#[derive(
Debug,
Clone,
Copy,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
Display,
Deserialize,
Serialize,
EnumString,
EnumIter,
EnumCount,
)]
#[strum(serialize_all = "snake_case")]
#[serde(rename_all = "snake_case")]
pub enum Capability {
/// Whether the item can be painted.
Paintable,
/// Whether the item can be renamed.
Nameable,
/// Whether the item can be crafted if purchased.
CanCraftIfPurchased,
/// Whether the item can be gift wrapped.
CanGiftWrap,
/// Whether the item can have a craft count.
CanCraftCount,
/// Whether the item can have a craft number.
CanCraftMark,
/// Whether the item can be restored.
CanBeRestored,
/// Whether the item can have strange parts.
StrangeParts,
/// Whether the item can be card upgraded.
CanCardUpgrade,
/// Whether the item can be strangified
CanStrangify,
/// Whether the item can be killstreakified.
CanKillstreakify,
/// Whether the item can be consumed.
CanConsume,
/// Whether the item can be unusualified.
CanUnusualify,
}