ocpp/v2_1/datatype/price_level_schedule_entry

OCPP 2.1 PriceLevelScheduleEntry data type (schema PriceLevelScheduleEntryType).

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

Types

Part of ISO 15118-20 price schedule.

FieldTypeReqDescription
custom_dataCustomData
durationIntThe amount of seconds that define the duration of this given PriceLevelScheduleEntry.
price_levelIntDefines the price level of this PriceLevelScheduleEntry (referring to NumberOfPriceLevels). Small values for the PriceLevel represent a cheaper PriceLevelScheduleEntry. Large values for the PriceLevel represent a more expensive PriceLevelScheduleEntry. (≥ 0)

Schema: PriceLevelScheduleEntryType

pub type PriceLevelScheduleEntry {
  PriceLevelScheduleEntry(
    custom_data: option.Option(custom_data.CustomData),
    duration: Int,
    price_level: Int,
  )
}

Constructors

Values

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

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

pub fn new(
  duration duration: Int,
  price_level price_level: Int,
) -> PriceLevelScheduleEntry

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

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

Encode a PriceLevelScheduleEntry to its OCPP-J JSON object.

Search Document