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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! Detergents & Surfactants (EU 2026/405, mandate 2029).
use serde::{Deserialize, Serialize};
use crate::identifier::Gtin;
/// A single surfactant ingredient in a detergent product.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct SurfactantEntry {
/// INCI or IUPAC name of the surfactant.
pub name: String,
/// Whether the surfactant is readily biodegradable per EU Regulation 2026/405.
/// All surfactants must be readily biodegradable; no derogations apply.
pub biodegradable: bool,
/// Concentration band per EU detergent labelling convention (Annex VII of 2026/405):
/// `"<5%"`, `"5-15%"`, `"15-30%"`, or `">=30%"` weight/weight.
pub concentration_band: String,
/// CAS Registry Number if applicable.
#[serde(skip_serializing_if = "Option::is_none")]
pub cas_number: Option<String>,
}
/// Detergent and surfactant product group data for EU Regulation 2026/405 DPP compliance.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct DetergentData {
/// 14-digit GTIN identifying the detergent product.
pub gtin: Gtin,
/// Product type, e.g. `"laundry"`, `"dishwashing"`, `"surface-cleaner"`, `"personal-care"`, `"other"`.
pub product_type: String,
/// Physical format, e.g. `"liquid"`, `"powder"`, `"tablet"`, `"gel"`, `"concentrate"`.
pub format: String,
/// List of surfactants in the product formulation.
pub surfactants: Vec<SurfactantEntry>,
/// ISO 3166-1 alpha-2 country of manufacture.
pub country_of_origin: String,
/// Carbon footprint in kg CO₂e per product unit (bottle or pack).
#[serde(skip_serializing_if = "Option::is_none")]
pub co2e_per_unit_kg: Option<f64>,
/// Whether the primary packaging is recyclable.
#[serde(skip_serializing_if = "Option::is_none")]
pub packaging_recyclable: Option<bool>,
/// Recommended dosage in millilitres (or grams for powder).
#[serde(skip_serializing_if = "Option::is_none")]
pub recommended_dosage_ml: Option<f64>,
/// Whether all surfactants are readily biodegradable (convenience summary flag).
#[serde(skip_serializing_if = "Option::is_none")]
pub biodegradable: Option<bool>,
}
impl crate::product_group::payload::ProductGroupPayload for DetergentData {
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. Detergent
/// hazards are carried by the surfactant and ingredient fields instead.
fn svhc_substances(&self) -> Option<&[crate::product_group::SvhcSubstance]> {
None
}
/// The detergent product type. Constrained by the `productType` enum in
/// this group's schema. Not [`Self::format`](DetergentData::format), which
/// is the physical presentation of the same product type.
fn product_category(&self) -> Option<&str> {
Some(&self.product_type)
}
}