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.
| Field | Type | Req | Description |
|---|---|---|---|
charging_profile_purpose | ChargingProfilePurpose | — | |
custom_data | CustomData | — | |
evse_id | Int | — | Specifies 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_level | Int | — | Specifies 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
-
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), )
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.