@@ -37,7 +37,7 @@ pub enum Operator {
37
37
/// DD -> Double Decker
38
38
///
39
39
/// BD -> Bendy
40
- #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize ) ]
40
+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize , Default ) ]
41
41
#[ serde( rename_all = "PascalCase" ) ]
42
42
pub enum BusType {
43
43
#[ serde( rename = "SD" ) ]
@@ -49,22 +49,17 @@ pub enum BusType {
49
49
#[ serde( rename = "BD" ) ]
50
50
Bendy ,
51
51
52
+ #[ default]
52
53
#[ serde( other) ]
53
54
Unknown ,
54
55
}
55
56
56
- impl Default for BusType {
57
- fn default ( ) -> Self {
58
- BusType :: Unknown
59
- }
60
- }
61
-
62
57
/// SEA -> Seats available
63
58
///
64
59
/// SDA -> Standing available
65
60
///
66
61
/// LSD -> Limited standing
67
- #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize ) ]
62
+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize , Default ) ]
68
63
pub enum BusLoad {
69
64
#[ serde( rename = "SEA" ) ]
70
65
SeatsAvailable ,
@@ -75,32 +70,24 @@ pub enum BusLoad {
75
70
#[ serde( rename = "LSD" ) ]
76
71
LimitedStanding ,
77
72
73
+ #[ default]
78
74
#[ serde( other) ]
79
75
Unknown ,
80
76
}
81
77
82
- impl Default for BusLoad {
83
- fn default ( ) -> Self {
84
- BusLoad :: Unknown
85
- }
86
- }
87
78
88
- #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize ) ]
79
+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize , Default ) ]
89
80
pub enum BusFeature {
90
81
#[ serde( rename = "WAB" ) ]
91
82
WheelChairAccessible ,
92
83
84
+ #[ default]
93
85
#[ serde( other) ]
94
86
Unknown ,
95
87
}
96
88
97
- impl Default for BusFeature {
98
- fn default ( ) -> Self {
99
- BusFeature :: Unknown
100
- }
101
- }
102
89
103
- #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize ) ]
90
+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Deserialize , Serialize , Default ) ]
104
91
pub enum BusCategory {
105
92
#[ serde( alias = "EXPRESS" ) ]
106
93
Express ,
@@ -132,6 +119,7 @@ pub enum BusCategory {
132
119
#[ serde( alias = "FLAT FARE $2.00" ) ]
133
120
FlatFareTwoDollar ,
134
121
122
+ #[ default]
135
123
#[ serde( other) ]
136
124
Unknown ,
137
125
}
0 commit comments