ocpp/v2_1/datatype/clear_charging_profile

OCPP 2.1 ClearChargingProfile data type (schema ClearChargingProfileType).

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

Types

A ClearChargingProfileType is a filter for charging profiles to be cleared by ClearChargingProfileRequest.

FieldTypeReqDescription
charging_profile_purposeChargingProfilePurpose
custom_dataCustomData
evse_idIntSpecifies the id of the EVSE for which to clear charging profiles. An evseId of zero (0) specifies the charging profile for the overall Charging Station. Absence of this parameter means the clearing applies to all charging profiles that match the other criteria in the request. (≥ 0)
stack_levelIntSpecifies the stackLevel for which charging profiles will be cleared, if they meet the other criteria in the request. (≥ 0)

Schema: ClearChargingProfileType

pub type ClearChargingProfile {
  ClearChargingProfile(
    charging_profile_purpose: option.Option(
      charging_profile_purpose.ChargingProfilePurpose,
    ),
    custom_data: option.Option(custom_data.CustomData),
    evse_id: option.Option(Int),
    stack_level: option.Option(Int),
  )
}

Constructors

Values

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

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

pub fn new() -> ClearChargingProfile

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

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

Encode a ClearChargingProfile to its OCPP-J JSON object.

Search Document