ocpp/v2_1/enum/message_state

OCPP 2.1 MessageState enumeration (schema MessageStateEnumType).

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

Types

If provided the Charging Station shall return Display Messages with the given state only.

pub type MessageState {
  Charging
  Faulted
  Idle
  Unavailable
  Suspended
  Discharging
}

Constructors

  • Charging
  • Faulted
  • Idle
  • Unavailable
  • Suspended
  • Discharging

Values

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

Decode a MessageState from its exact schema token.

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

Encode a MessageState to its exact schema token.

Search Document