pub struct MaterialLineResult {
pub mass_kg: f64,
pub emission_factor_kg_co2e_per_kg: f64,
pub co2e_kg: f64,
}Expand description
CO₂e contribution for one material line — the audit breakdown that backs the total.
Fields§
§mass_kg: f64Mass of this material, in kg (echoed from input for self-documenting receipts).
emission_factor_kg_co2e_per_kg: f64Emission factor used, in kg CO₂e/kg.
co2e_kg: f64Embodied emissions for this line: mass_kg × emission_factor, in kg CO₂e.
Trait Implementations§
Source§impl Clone for MaterialLineResult
impl Clone for MaterialLineResult
Source§fn clone(&self) -> MaterialLineResult
fn clone(&self) -> MaterialLineResult
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 MaterialLineResult
impl Debug for MaterialLineResult
Source§impl<'de> Deserialize<'de> for MaterialLineResult
impl<'de> Deserialize<'de> for MaterialLineResult
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 MaterialLineResult
impl RefUnwindSafe for MaterialLineResult
impl Send for MaterialLineResult
impl Sync for MaterialLineResult
impl Unpin for MaterialLineResult
impl UnsafeUnpin for MaterialLineResult
impl UnwindSafe for MaterialLineResult
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