ocpp/v2_1/datatype/ev_absolute_price_schedule_entry

OCPP 2.1 EvAbsolutePriceScheduleEntry data type (schema EVAbsolutePriceScheduleEntryType).

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

Types

(2.1) An entry in price schedule over time for which EV is willing to discharge.

FieldTypeReqDescription
custom_dataCustomData
durationIntThe amount of seconds of this entry.
ev_price_ruleList(EvPriceRule)

Schema: EVAbsolutePriceScheduleEntryType

pub type EvAbsolutePriceScheduleEntry {
  EvAbsolutePriceScheduleEntry(
    custom_data: option.Option(custom_data.CustomData),
    duration: Int,
    ev_price_rule: List(ev_price_rule.EvPriceRule),
  )
}

Constructors

Values

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

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

pub fn new(
  duration duration: Int,
  ev_price_rule ev_price_rule: List(ev_price_rule.EvPriceRule),
) -> EvAbsolutePriceScheduleEntry

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

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

Encode a EvAbsolutePriceScheduleEntry to its OCPP-J JSON object.

Search Document