@@ -112,11 +112,19 @@ pub struct Toc {
112
112
pub co2e_intensity_wtw : WrappedDecimal ,
113
113
#[ serde( rename = "co2eIntensityTTW" ) ]
114
114
pub co2e_intensity_ttw : WrappedDecimal ,
115
- pub co2e_intensity_throughput : String ,
115
+ pub co2e_intensity_throughput : TocCo2eIntensityThroughput ,
116
116
#[ serde( skip_serializing_if = "Option::is_none" ) ]
117
117
pub glec_data_quality_index : Option < GlecDataQualityIndex > ,
118
118
}
119
119
120
+ #[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema , PartialEq ) ]
121
+ #[ serde( rename_all = "camelCase" ) ]
122
+ pub enum TocCo2eIntensityThroughput {
123
+ #[ serde( rename = "TEUkm" ) ]
124
+ TEUkm ,
125
+ Tkm ,
126
+ }
127
+
120
128
#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema , PartialEq ) ]
121
129
#[ serde( rename_all = "camelCase" ) ]
122
130
pub enum TemperatureControl {
@@ -179,7 +187,15 @@ pub struct Hoc {
179
187
pub co2e_intensity_wtw : WrappedDecimal ,
180
188
#[ serde( rename = "co2eIntensityTTW" ) ]
181
189
pub co2e_intensity_ttw : WrappedDecimal ,
182
- pub co2e_intensity_throughput : String ,
190
+ pub co2e_intensity_throughput : HocCo2eIntensityThroughput ,
191
+ }
192
+
193
+ #[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema , PartialEq ) ]
194
+ #[ serde( rename_all = "camelCase" ) ]
195
+ pub enum HocCo2eIntensityThroughput {
196
+ #[ serde( rename = "TEU" ) ]
197
+ TEU ,
198
+ Tonnes ,
183
199
}
184
200
185
201
#[ derive( Debug , Serialize , Deserialize , JsonSchema , PartialEq , Clone ) ]
0 commit comments