EnvironmentalImpact
public struct EnvironmentalImpact : Hashable
Represents environmental impact for an environmental impact category. EnergyMix contains an list of this representing the environmental impacts of different categories. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Environmental impact category.
Declaration
Swift
public var category: EnvironmentalImpactCategory -
Amount of waste in g/kWh for this category.
Declaration
Swift
public var amountInGramPerKilowattHours: Double -
Creates a new instance.
Declaration
Swift
public init(category: EnvironmentalImpactCategory = EnvironmentalImpactCategory.carbonDioxide, amountInGramPerKilowattHours: Double = 0.0)