ocpp/v2_0_1/datatype/composite_schedule

OCPP 2.0.1 CompositeSchedule data type (schema CompositeScheduleType).

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

Types

FieldTypeReqDescription
charging_rate_unitChargingRateUnit
charging_schedule_periodList(ChargingSchedulePeriod)
custom_dataCustomData
durationIntDuration of the schedule in seconds.
evse_idIntThe ID of the EVSE for which the schedule is requested. When evseid=0, the Charging Station calculated the expected consumption for the grid connection.
schedule_startDateTimeDate and time at which the schedule becomes active. All time measurements within the schedule are relative to this timestamp.

Schema: CompositeScheduleType · Composite_Schedule · urn:x-oca:ocpp:uid:2:233362

pub type CompositeSchedule {
  CompositeSchedule(
    charging_rate_unit: charging_rate_unit.ChargingRateUnit,
    charging_schedule_period: List(
      charging_schedule_period.ChargingSchedulePeriod,
    ),
    custom_data: option.Option(custom_data.CustomData),
    duration: Int,
    evse_id: Int,
    schedule_start: timestamp.Timestamp,
  )
}

Constructors

Values

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

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

pub fn new(
  charging_rate_unit charging_rate_unit: charging_rate_unit.ChargingRateUnit,
  charging_schedule_period charging_schedule_period: List(
    charging_schedule_period.ChargingSchedulePeriod,
  ),
  duration duration: Int,
  evse_id evse_id: Int,
  schedule_start schedule_start: timestamp.Timestamp,
) -> CompositeSchedule

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

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

Encode a CompositeSchedule to its OCPP-J JSON object.

Search Document