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
//! Construction Products (EU CPR 2024/3110, mandate ~2028-2032 phased).
use serde::{Deserialize, Serialize};
use crate::identifier::Gtin;
/// Construction products product group data for EU CPR 2024/3110 compliance.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct ConstructionData {
/// 14-digit GTIN identifying the construction product.
pub gtin: Gtin,
/// Product family, e.g. `"cement"`, `"concrete"`, `"structural-steel"`, `"glass"`.
pub product_family: String,
/// ISO 3166-1 alpha-2 country of manufacture.
pub country_of_origin: String,
/// Carbon footprint in kg CO₂e per functional unit.
pub co2e_per_functional_unit_kg: f64,
/// Description of the functional unit (e.g., `"per tonne"`, `"per m²"`, `"per m³"`).
pub functional_unit: String,
/// Recycled content as a percentage of total input material (0.0–100.0).
#[serde(skip_serializing_if = "Option::is_none")]
pub recycled_content_pct: Option<f64>,
/// URL to the Environmental Product Declaration (EPD).
#[serde(skip_serializing_if = "Option::is_none")]
pub epd_url: Option<String>,
/// Whether the product carries CE marking under EU CPR.
#[serde(skip_serializing_if = "Option::is_none")]
pub ce_marking: Option<bool>,
}
impl crate::product_group::payload::ProductGroupPayload for ConstructionData {
fn gtin(&self) -> Option<&str> {
Some(self.gtin.as_str())
}
/// This act defines no model identifier.
fn model_identifier(&self) -> Option<&str> {
None
}
/// This act's schema declares no substances-of-concern field.
fn svhc_substances(&self) -> Option<&[crate::product_group::SvhcSubstance]> {
None
}
/// CPR calls this axis the product family; it is this group's category.
/// Constrained by the `productFamily` enum in this group's schema.
fn product_category(&self) -> Option<&str> {
Some(&self.product_family)
}
}