Skip to main content

Module rules

Module rules 

Source
Expand description

Validation helpers for product group payload lists.

The cross-field rule logic lives once in dpp-rules (shared with the Wasm product group plugins). These thin adapters map the domain structs onto that crate’s primitive inputs, preserving the public API and error messages.

Functions§

battery_recycled_chemistry_conflicts
Metals declared with recycled content > 0 that the battery chemistry does not contain (a data-integrity contradiction, e.g. cobalt on LFP). Delegates to dpp_rules. chemistry is the serde code ("LFP", "NMC", …).
unsold_goods_annex_vii_heading
The ESPR Annex VII heading a commodity code falls under, if any (apparel & clothing accessories, or footwear). None means the code is out of Annex VII’s destruction-ban scope entirely. Delegates to dpp_rules.
unsold_goods_cn_depth_is_correct
Whether a disclosure line’s CN category is filed at the depth Impl. Reg. (EU) 2026/2 Art. 3 requires for it. Delegates to dpp_rules.
validate_battery_operating_temp
Validate a battery’s operating temperature range (min < max when both are declared). Delegates to dpp_rules.
validate_fibre_composition
Validate a textile fibre composition list. Delegates to dpp_rules.
validate_surfactants
Validate a detergent surfactant list. Delegates to dpp_rules.
validate_svhc_substances
Validate a list of SVHC substance declarations. Delegates to dpp_rules.