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
69
70
71
72
73
74
75
76
77
78
79
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PrepInstruction {
#[serde(rename = "Polybagging")]
Polybagging,
#[serde(rename = "BubbleWrapping")]
BubbleWrapping,
#[serde(rename = "Taping")]
Taping,
#[serde(rename = "BlackShrinkWrapping")]
BlackShrinkWrapping,
#[serde(rename = "Labeling")]
Labeling,
#[serde(rename = "HangGarment")]
HangGarment,
#[serde(rename = "SetCreation")]
SetCreation,
#[serde(rename = "Boxing")]
Boxing,
#[serde(rename = "RemoveFromHanger")]
RemoveFromHanger,
#[serde(rename = "Debundle")]
Debundle,
#[serde(rename = "SuffocationStickering")]
SuffocationStickering,
#[serde(rename = "CapSealing")]
CapSealing,
#[serde(rename = "SetStickering")]
SetStickering,
#[serde(rename = "BlankStickering")]
BlankStickering,
#[serde(rename = "NoPrep")]
NoPrep,
}
impl ToString for PrepInstruction {
fn to_string(&self) -> String {
match self {
Self::Polybagging => String::from("Polybagging"),
Self::BubbleWrapping => String::from("BubbleWrapping"),
Self::Taping => String::from("Taping"),
Self::BlackShrinkWrapping => String::from("BlackShrinkWrapping"),
Self::Labeling => String::from("Labeling"),
Self::HangGarment => String::from("HangGarment"),
Self::SetCreation => String::from("SetCreation"),
Self::Boxing => String::from("Boxing"),
Self::RemoveFromHanger => String::from("RemoveFromHanger"),
Self::Debundle => String::from("Debundle"),
Self::SuffocationStickering => String::from("SuffocationStickering"),
Self::CapSealing => String::from("CapSealing"),
Self::SetStickering => String::from("SetStickering"),
Self::BlankStickering => String::from("BlankStickering"),
Self::NoPrep => String::from("NoPrep"),
}
}
}
impl Default for PrepInstruction {
fn default() -> PrepInstruction {
Self::Polybagging
}
}