@@ -32,7 +32,7 @@ use crate::{Hoc, HocCo2eIntensityThroughput, ShipmentFootprint, Toc};
32
32
}
33
33
} */
34
34
35
- pub struct MappedFields {
35
+ pub struct PACTMappedFields {
36
36
product_id_type : & ' static str ,
37
37
data_schema_id : & ' static str ,
38
38
id : String ,
@@ -42,9 +42,9 @@ pub struct MappedFields {
42
42
p_cf_excluding_biogenic : Decimal ,
43
43
}
44
44
45
- impl From < & ShipmentFootprint > for MappedFields {
45
+ impl From < & ShipmentFootprint > for PACTMappedFields {
46
46
fn from ( shipment : & ShipmentFootprint ) -> Self {
47
- MappedFields {
47
+ PACTMappedFields {
48
48
product_id_type : "shipment" ,
49
49
data_schema_id : "shipment-footprint" ,
50
50
id : shipment. shipment_id . clone ( ) ,
@@ -64,9 +64,9 @@ impl From<&ShipmentFootprint> for MappedFields {
64
64
}
65
65
}
66
66
67
- impl From < & Hoc > for MappedFields {
67
+ impl From < & Hoc > for PACTMappedFields {
68
68
fn from ( hoc : & Hoc ) -> Self {
69
- MappedFields {
69
+ PACTMappedFields {
70
70
product_id_type : "hoc" ,
71
71
data_schema_id : "hoc" ,
72
72
id : hoc. hoc_id . clone ( ) ,
@@ -83,9 +83,9 @@ impl From<&Hoc> for MappedFields {
83
83
}
84
84
}
85
85
86
- impl From < & Toc > for MappedFields {
86
+ impl From < & Toc > for PACTMappedFields {
87
87
fn from ( toc : & Toc ) -> Self {
88
- MappedFields {
88
+ PACTMappedFields {
89
89
product_id_type : "toc" ,
90
90
data_schema_id : "toc" ,
91
91
id : toc. toc_id . clone ( ) ,
@@ -114,7 +114,7 @@ pub fn to_pcf<T>(
114
114
) -> ProductFootprint
115
115
where
116
116
T : Serialize ,
117
- MappedFields : for < ' a > From < & ' a T > ,
117
+ PACTMappedFields : for < ' a > From < & ' a T > ,
118
118
{
119
119
// massage the optional IPCC characterization factors into a tuple of the actual factors and the IPCC Characterization Factor sources
120
120
let ( characterization_factors, characterization_factors_sources) =
@@ -126,7 +126,7 @@ where
126
126
// the current implementation bails out drastically. We are investingating whether
127
127
// this is indicates a lack in the iLEAP Data Model. This function will be updated
128
128
// once we have more information.
129
- let MappedFields {
129
+ let PACTMappedFields {
130
130
product_id_type,
131
131
data_schema_id,
132
132
id,
0 commit comments