ocpp/v2_1/enum/reading_context

OCPP 2.1 ReadingContext enumeration (schema ReadingContextEnumType).

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

Types

Type of detail value: start, end or sample. Default = “Sample.Periodic”

pub type ReadingContext {
  InterruptionBegin
  InterruptionEnd
  Other
  SampleClock
  SamplePeriodic
  TransactionBegin
  TransactionEnd
  Trigger
}

Constructors

  • InterruptionBegin
  • InterruptionEnd
  • Other
  • SampleClock
  • SamplePeriodic
  • TransactionBegin
  • TransactionEnd
  • Trigger

Values

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

Decode a ReadingContext from its exact schema token.

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

Encode a ReadingContext to its exact schema token.

Search Document