Skip to content

Commit

Permalink
fix: product_or_sector_specific_rules turned M
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques committed Apr 29, 2024
1 parent f130160 commit 0f2b95d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion endpoint/src/datamodel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub struct CarbonFootprint {
pub ipcc_characterization_factors_sources: IpccCharacterizationFactorsSources,

pub cross_sectoral_standards_used: CrossSectoralStandardSet,
pub product_or_sector_specific_rules: Option<ProductOrSectorSpecificRuleSet>,
pub product_or_sector_specific_rules: ProductOrSectorSpecificRuleSet,

#[serde(skip_serializing_if = "Option::is_none")]
pub biogenic_accounting_methodology: Option<BiogenicAccountingMethodology>,
Expand Down
16 changes: 8 additions & 8 deletions endpoint/src/sample_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ lazy_static!(
characterization_factors: CharacterizationFactors::Ar6,
ipcc_characterization_factors_sources: IpccCharacterizationFactorsSources::from(vec![String::from("AR6").into()]),
cross_sectoral_standards_used: CrossSectoralStandardSet(vec![CrossSectoralStandard::Ghgp, CrossSectoralStandard::ISO14067]),
product_or_sector_specific_rules: Some(ProductOrSectorSpecificRuleSet(vec![
product_or_sector_specific_rules: ProductOrSectorSpecificRuleSet(vec![
ProductOrSectorSpecificRule {
operator: ProductOrSectorSpecificRuleOperator::Other,
rule_names: vec![String::from("The Product Carbon Footprint Guideline for the Chemical Industry, v.2.0").into()].into(),
other_operator_name: Some(String::from("Tfs").into())
}])),
}]),
biogenic_accounting_methodology: Some(BiogenicAccountingMethodology::Ghpg),
boundary_processes_description: String::from("1) Material acquisition and preprocessing, including growth of corn 2) Production: fuel consumption, electricity consumption, water consumption, process-generated direct emissions 3) Distribution and storage: transportation of the finished product from manufacturing site to storage site"),
reference_period_start: Utc.ymd(2021, 1, 1).and_hms(00, 00, 00),
Expand Down Expand Up @@ -113,12 +113,12 @@ lazy_static!(
characterization_factors: CharacterizationFactors::Ar6,
ipcc_characterization_factors_sources: IpccCharacterizationFactorsSources::from(vec![String::from("AR6").into()]),
cross_sectoral_standards_used: CrossSectoralStandardSet(vec![CrossSectoralStandard::Ghgp, CrossSectoralStandard::ISO14067]),
product_or_sector_specific_rules: Some(ProductOrSectorSpecificRuleSet(vec![
product_or_sector_specific_rules: ProductOrSectorSpecificRuleSet(vec![
ProductOrSectorSpecificRule {
operator: ProductOrSectorSpecificRuleOperator::Other,
rule_names: vec![String::from("The Product Carbon Footprint Guideline for the Chemical Industry, v.2.0").into()].into(),
other_operator_name: Some(String::from("Tfs").into())
}])),
}]),
biogenic_accounting_methodology: Some(BiogenicAccountingMethodology::Ghpg),
boundary_processes_description: String::from("1) Material acquisition and preprocessing, including growth of corn 2) Production: fuel consumption, electricity consumption, water consumption, process-generated direct emissions 3) Distribution and storage: transportation of the finished product from manufacturing site to storage site"),
reference_period_start: Utc.ymd(2021, 1, 1).and_hms(00, 00, 00),
Expand Down Expand Up @@ -183,13 +183,13 @@ lazy_static!(
characterization_factors: CharacterizationFactors::Ar5,
ipcc_characterization_factors_sources: IpccCharacterizationFactorsSources::from(vec![String::from("AR5").into(), String::from("AR6").into()]),
cross_sectoral_standards_used: CrossSectoralStandardSet(vec![CrossSectoralStandard::Ghgp]),
product_or_sector_specific_rules: Some(ProductOrSectorSpecificRuleSet(vec![
product_or_sector_specific_rules: ProductOrSectorSpecificRuleSet(vec![
ProductOrSectorSpecificRule {
operator: ProductOrSectorSpecificRuleOperator::EPDInternational,
rule_names: vec![String::from("PCR cardboard").into()].into(),
other_operator_name: None
}
])),
]),
biogenic_accounting_methodology: Some(BiogenicAccountingMethodology::Pef),
boundary_processes_description: String::from("1) Material acquisition and preprocessing, including growth of trees 2) Production: fuel consumption, electricity consumption, water consumption, process-generated direct emissions 3) Distribution and storage: transportation of the finished product from manufacturing site to storage site"),
reference_period_start: Utc.ymd(2021, 1, 1).and_hms(00, 00, 00),
Expand Down Expand Up @@ -263,13 +263,13 @@ lazy_static!(
characterization_factors: CharacterizationFactors::Ar5,
ipcc_characterization_factors_sources: IpccCharacterizationFactorsSources::from(vec![String::from("AR5").into(), String::from("AR6").into()]),
cross_sectoral_standards_used: CrossSectoralStandardSet(vec![CrossSectoralStandard::Ghgp]),
product_or_sector_specific_rules: Some(ProductOrSectorSpecificRuleSet(vec![
product_or_sector_specific_rules: ProductOrSectorSpecificRuleSet(vec![
ProductOrSectorSpecificRule {
operator: ProductOrSectorSpecificRuleOperator::EPDInternational,
rule_names: vec![String::from("PCR cardboard").into()].into(),
other_operator_name: None
}
])),
]),
biogenic_accounting_methodology: Some(BiogenicAccountingMethodology::Pef),
boundary_processes_description: String::from("1) Material acquisition and preprocessing, including growth of trees 2) Production: fuel consumption, electricity consumption, water consumption, process-generated direct emissions 3) Distribution and storage: transportation of the finished product from manufacturing site to storage site"),
reference_period_start: Utc.ymd(2021, 1, 1).and_hms(00, 00, 00),
Expand Down

0 comments on commit 0f2b95d

Please sign in to comment.