pub struct Co2eResult {
pub material_co2e_kg: f64,
pub energy_co2e_kg: f64,
pub total_co2e_kg: f64,
pub material_breakdown: Vec<MaterialLineResult>,
pub declared_stages: Vec<LifecycleStage>,
pub receipt: CalculationReceipt,
}Expand description
Transparent breakdown of the footprint plus a proof-of-calculation receipt.
Fields§
§material_co2e_kg: f64Embodied emissions from materials, kg CO₂e.
energy_co2e_kg: f64Emissions from manufacturing energy, kg CO₂e.
total_co2e_kg: f64Total cradle-to-gate footprint, kg CO₂e.
material_breakdown: Vec<MaterialLineResult>Per-material breakdown — each entry corresponds to Co2eInputs::materials[i].
Enables a notified body to trace any line item without re-running the calculation.
declared_stages: Vec<LifecycleStage>Lifecycle stages this result covers (its declared PEF system boundary).
receipt: CalculationReceiptProof-of-calculation receipt (input hash + output hash + ruleset citation).
Trait Implementations§
Source§impl Clone for Co2eResult
impl Clone for Co2eResult
Source§fn clone(&self) -> Co2eResult
fn clone(&self) -> Co2eResult
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 Co2eResult
impl Debug for Co2eResult
Source§impl<'de> Deserialize<'de> for Co2eResult
impl<'de> Deserialize<'de> for Co2eResult
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 Co2eResult
impl RefUnwindSafe for Co2eResult
impl Send for Co2eResult
impl Sync for Co2eResult
impl Unpin for Co2eResult
impl UnsafeUnpin for Co2eResult
impl UnwindSafe for Co2eResult
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