ocpp/v2_1/enum/transaction_event

OCPP 2.1 TransactionEvent enumeration (schema TransactionEventEnumType).

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

Types

This contains the type of this event. The first TransactionEvent of a transaction SHALL contain: “Started” The last TransactionEvent of a transaction SHALL contain: “Ended” All others SHALL contain: “Updated”

pub type TransactionEvent {
  Ended
  Started
  Updated
}

Constructors

  • Ended
  • Started
  • Updated

Values

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

Decode a TransactionEvent from its exact schema token.

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

Encode a TransactionEvent to its exact schema token.

Search Document