pub struct Co2eInputs {
pub materials: Vec<MaterialFootprint>,
pub energy_kwh: f64,
pub grid_factor_kg_co2e_per_kwh: f64,
}Expand description
Inputs for a single product’s cradle-to-gate footprint.
Fields§
§materials: Vec<MaterialFootprint>Bill of materials with per-material emission factors.
energy_kwh: f64Manufacturing energy consumed per unit, in kWh.
grid_factor_kg_co2e_per_kwh: f64Emissions per kWh of the production grid, in kg CO₂e/kWh.
Trait Implementations§
Source§impl Clone for Co2eInputs
impl Clone for Co2eInputs
Source§fn clone(&self) -> Co2eInputs
fn clone(&self) -> Co2eInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Co2eInputs
impl Debug for Co2eInputs
Source§impl<'de> Deserialize<'de> for Co2eInputs
impl<'de> Deserialize<'de> for Co2eInputs
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
Source§impl PartialEq for Co2eInputs
impl PartialEq for Co2eInputs
Source§fn eq(&self, other: &Co2eInputs) -> bool
fn eq(&self, other: &Co2eInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Co2eInputs
impl Serialize for Co2eInputs
impl StructuralPartialEq for Co2eInputs
Auto Trait Implementations§
impl Freeze for Co2eInputs
impl RefUnwindSafe for Co2eInputs
impl Send for Co2eInputs
impl Sync for Co2eInputs
impl Unpin for Co2eInputs
impl UnsafeUnpin for Co2eInputs
impl UnwindSafe for Co2eInputs
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