pub struct MaterialEntry {
pub name: String,
pub weight_kg: f64,
pub recycled_pct: Option<f64>,
pub country_of_origin: Option<String>,
}Expand description
A single material entry in the passport’s bill of materials.
Fields§
§name: String§weight_kg: f64§recycled_pct: Option<f64>Percentage of recycled content (0.0–100.0).
country_of_origin: Option<String>ISO 3166-1 alpha-2 country code of material origin.
Trait Implementations§
Source§impl Clone for MaterialEntry
impl Clone for MaterialEntry
Source§impl Debug for MaterialEntry
impl Debug for MaterialEntry
Source§impl<'de> Deserialize<'de> for MaterialEntry
impl<'de> Deserialize<'de> for MaterialEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MaterialEntry
impl RefUnwindSafe for MaterialEntry
impl Send for MaterialEntry
impl Sync for MaterialEntry
impl Unpin for MaterialEntry
impl UnsafeUnpin for MaterialEntry
impl UnwindSafe for MaterialEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more