ocpp/v2_1/enum/charging_state

OCPP 2.1 ChargingState enumeration (schema ChargingStateEnumType).

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

Types

Current charging state, is required when state has changed. Omitted when there is no communication between EVSE and EV, because no cable is plugged in.

pub type ChargingState {
  EvConnected
  Charging
  SuspendedEv
  SuspendedEvse
  Idle
}

Constructors

  • EvConnected
  • Charging
  • SuspendedEv
  • SuspendedEvse
  • Idle

Values

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

Decode a ChargingState from its exact schema token.

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

Encode a ChargingState to its exact schema token.

Search Document