ocpp/v1_6/datatype/charging_schedule_period

OCPP 1.6 ChargingSchedulePeriod data type.

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

Types

FieldTypeReqDescription
limitFloat
number_phasesInt
start_periodInt

Schema: ChargingSchedulePeriod

pub type ChargingSchedulePeriod {
  ChargingSchedulePeriod(
    limit: Float,
    number_phases: option.Option(Int),
    start_period: Int,
  )
}

Constructors

  • ChargingSchedulePeriod(
      limit: Float,
      number_phases: option.Option(Int),
      start_period: Int,
    )

Values

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

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

pub fn new(
  limit limit: Float,
  start_period start_period: Int,
) -> ChargingSchedulePeriod

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

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

Encode a ChargingSchedulePeriod to its OCPP-J JSON object.

Search Document