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.
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
duration | Int | ✓ | The amount of seconds of this entry. |
ev_price_rule | List(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
-
EvAbsolutePriceScheduleEntry( custom_data: option.Option(custom_data.CustomData), duration: Int, ev_price_rule: List(ev_price_rule.EvPriceRule), )
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.