ocpp/v2_1/enum/tariff_cost

OCPP 2.1 TariffCost enumeration (schema TariffCostEnumType).

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

Types

Type of cost: normal or the minimum or maximum cost.

pub type TariffCost {
  NormalCost
  MinCost
  MaxCost
}

Constructors

  • NormalCost
  • MinCost
  • MaxCost

Values

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

Decode a TariffCost from its exact schema token.

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

Encode a TariffCost to its exact schema token.

Search Document