EnergySource
public struct EnergySource : Hashable
Energy source of EV charging point. EnergyMix contains a list of this representing the energy sources. 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.
-
Source of the energy.
Declaration
Swift
public var source: EnergySourceType -
Percentage of this source (0-100) in the mix, possibly a non-integer value such as 32.3.
Declaration
Swift
public var percentage: Double -
Creates a new instance.
Declaration
Swift
public init(source: EnergySourceType = EnergySourceType.generalGreen, percentage: Double = 0.0)