ocpp/v2_1/enum/location

OCPP 2.1 Location enumeration (schema LocationEnumType).

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

Types

Indicates where the measured value has been sampled. Default = “Outlet”

pub type Location {
  Body
  Cable
  Ev
  Inlet
  Outlet
  Upstream
}

Constructors

  • Body
  • Cable
  • Ev
  • Inlet
  • Outlet
  • Upstream

Values

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

Decode a Location from its exact schema token.

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

Encode a Location to its exact schema token.

Search Document