ocpp/v2_0_1/datatype/sales_tariff_entry

OCPP 2.0.1 SalesTariffEntry data type (schema SalesTariffEntryType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

FieldTypeReqDescription
consumption_costList(ConsumptionCost)
custom_dataCustomData
e_price_levelIntDefines the price level of this SalesTariffEntry (referring to NumEPriceLevels). Small values for the EPriceLevel represent a cheaper TariffEntry. Large values for the EPriceLevel represent a more expensive TariffEntry. (≥ 0)
relative_time_intervalRelativeTimeInterval

Schema: SalesTariffEntryType · Sales_Tariff_Entry · urn:x-oca:ocpp:uid:2:233271

pub type SalesTariffEntry {
  SalesTariffEntry(
    consumption_cost: option.Option(
      List(consumption_cost.ConsumptionCost),
    ),
    custom_data: option.Option(custom_data.CustomData),
    e_price_level: option.Option(Int),
    relative_time_interval: relative_time_interval.RelativeTimeInterval,
  )
}

Constructors

Values

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

Decode a SalesTariffEntry from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  relative_time_interval relative_time_interval: relative_time_interval.RelativeTimeInterval,
) -> SalesTariffEntry

Construct a SalesTariffEntry from its required fields, with every optional field set to None.

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

Encode a SalesTariffEntry to its OCPP-J JSON object.

Search Document