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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
use strum_macros::{Display, EnumString, EnumIter, EnumCount};
use num_enum::{TryFromPrimitive, IntoPrimitive};
use serde_repr::{Serialize_repr, Deserialize_repr};
#[derive(Serialize_repr, Deserialize_repr, Debug, Hash, Eq, PartialEq, Display, EnumString, EnumIter, EnumCount, TryFromPrimitive, IntoPrimitive, Clone, Copy)]
#[repr(u32)]
pub enum Origin {
#[strum(serialize = "Timed Drop")]
TimedDrop = 0,
#[strum(serialize = "Achievement")]
Achievement = 1,
#[strum(serialize = "Purchased")]
Purchased = 2,
#[strum(serialize = "Traded")]
Traded = 3,
#[strum(serialize = "Crafted")]
Crafted = 4,
#[strum(serialize = "Store Promotion")]
StorePromotion = 5,
#[strum(serialize = "Gifted")]
Gifted = 6,
#[strum(serialize = "Support Granted")]
SupportGranted = 7,
#[strum(serialize = "Found in Crate")]
FoundInCrate = 8,
#[strum(serialize = "Earned")]
Earned = 9,
#[strum(serialize = "Third-Party Promotion")]
ThirdPartyPromotion = 10,
#[strum(serialize = "Wrapped Gift")]
WrappedGift = 11,
#[strum(serialize = "Halloween Drop")]
HalloweenDrop = 12,
#[strum(serialize = "Steam Purchase")]
SteamPurchase = 13,
#[strum(serialize = "Foreign Item")]
ForeignItem = 14,
#[strum(serialize = "CD Key")]
CDKey = 15,
#[strum(serialize = "Collection Reward")]
CollectionReward = 16,
#[strum(serialize = "Preview Item")]
PreviewItem = 17,
#[strum(serialize = "Steam Workshop Contribution")]
SteamWorkshopContribution = 18,
#[strum(serialize = "Periodic score reward")]
PeriodicScoreReward = 19,
#[strum(serialize = "MvM Badge completion reward")]
MvMBadgeCompletionReward = 20,
#[strum(serialize = "MvM Squad surplus reward")]
MvMSquadSurplusReward = 21,
#[strum(serialize = "Recipe output")]
RecipeOutput = 22,
#[strum(serialize = "Quest Drop")]
QuestDrop = 23,
#[strum(serialize = "Quest Loaner Item")]
QuestLoanerItem = 24,
#[strum(serialize = "Trade-Up")]
TradeUp = 25,
#[strum(serialize = "Viral Competitive Beta Pass Spread")]
ViralCompetitiveBetaPassSpread = 26,
#[strum(serialize = "CYOA Blood Money Purchase")]
CYOABloodMoneyPurchase = 27,
#[strum(serialize = "War Paint")]
WarPaint = 28,
#[strum(serialize = "Untradable Free Contract Reward")]
UntradableFreeContractReward = 29,
}