ocpp/v2_1/enum/der_unit

OCPP 2.1 DerUnit enumeration (schema DERUnitEnumType).

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

Types

Unit of the Y-axis of DER curve

pub type DerUnit {
  NotApplicable
  PctMaxw
  PctMaxVar
  PctWAvail
  PctVarAvail
  PctEffectivev
}

Constructors

  • NotApplicable
  • PctMaxw
  • PctMaxVar
  • PctWAvail
  • PctVarAvail
  • PctEffectivev

Values

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

Decode a DerUnit from its exact schema token.

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

Encode a DerUnit to its exact schema token.

Search Document