pub struct CarbonEfficiency {
pub co2_per_operation: f64,
pub carbon_intensity: f64,
pub renewable_percentage: f64,
}Expand description
Carbon efficiency metrics
Fields§
§co2_per_operation: f64Grams of CO2 per operation
carbon_intensity: f64Carbon intensity of energy source (gCO2/kWh)
renewable_percentage: f64Renewable energy percentage (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for CarbonEfficiency
impl Clone for CarbonEfficiency
Source§fn clone(&self) -> CarbonEfficiency
fn clone(&self) -> CarbonEfficiency
Returns a duplicate of the value. Read more
1.0.0 · 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 CarbonEfficiency
impl Debug for CarbonEfficiency
Source§impl Default for CarbonEfficiency
impl Default for CarbonEfficiency
Source§impl<'de> Deserialize<'de> for CarbonEfficiency
impl<'de> Deserialize<'de> for CarbonEfficiency
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 CarbonEfficiency
impl RefUnwindSafe for CarbonEfficiency
impl Send for CarbonEfficiency
impl Sync for CarbonEfficiency
impl Unpin for CarbonEfficiency
impl UnwindSafe for CarbonEfficiency
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