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