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