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 and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change 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)