ocpp/v2_1/enum/cost_dimension

OCPP 2.1 CostDimension enumeration (schema CostDimensionEnumType).

to_json/decoder map each constructor to/from its exact schema token.

Types

Type of cost dimension: energy, power, time, etc.

pub type CostDimension {
  Energy
  MaxCurrent
  MinCurrent
  MaxPower
  MinPower
  IdleTIme
  ChargingTime
}

Constructors

  • Energy
  • MaxCurrent
  • MinCurrent
  • MaxPower
  • MinPower
  • IdleTIme
  • ChargingTime

Values

pub fn decoder() -> decode.Decoder(CostDimension)

Decode a CostDimension from its exact schema token.

pub fn to_json(value: CostDimension) -> json.Json

Encode a CostDimension to its exact schema token.

Search Document