dpp_domain/material/entry.rs
1//! [`MaterialEntry`] — a single line item in the passport's bill of materials.
2
3use serde::{Deserialize, Serialize};
4
5/// A single material entry in the passport's bill of materials.
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct MaterialEntry {
9 pub name: String,
10 pub weight_kg: f64,
11 /// Percentage of recycled content (0.0–100.0).
12 pub recycled_pct: Option<f64>,
13 /// ISO 3166-1 alpha-2 country code of material origin.
14 pub country_of_origin: Option<String>,
15}