ocpp/v2_0_1/enum/ocpp_version

OCPP 2.0.1 OcppVersion enumeration (schema OCPPVersionEnumType).

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

Types

Defines the OCPP version used for this communication function.

Data dictionary: Communication_Function.OCPP_Version.OCPP_Version_Code · urn:x-oca:ocpp:uid:1:569355

pub type OcppVersion {
  Ocpp12
  Ocpp15
  Ocpp16
  Ocpp20
}

Constructors

  • Ocpp12
  • Ocpp15
  • Ocpp16
  • Ocpp20

Values

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

Decode a OcppVersion from its exact schema token.

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

Encode a OcppVersion to its exact schema token.

Search Document