ocpp/v2_1/enum/cost_kind

OCPP 2.1 CostKind enumeration (schema CostKindEnumType).

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

Types

The kind of cost referred to in the message element amount

pub type CostKind {
  CarbonDioxideEmission
  RelativePricePercentage
  RenewableGenerationPercentage
}

Constructors

  • CarbonDioxideEmission
  • RelativePricePercentage
  • RenewableGenerationPercentage

Values

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

Decode a CostKind from its exact schema token.

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

Encode a CostKind to its exact schema token.

Search Document