tf2_enum/
capability.rs

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