ocpp/v1_6/message/clear_charging_profile
OCPP 1.6 ClearChargingProfile action.
Request/Response payload types with their OCPP-J codecs
(request_to_json/request_decoder, response_to_json/
response_decoder). Transport-agnostic; the action-string mapping
lives in ocpp/v1_6/dispatch.
Types
| Field | Type | Req | Description |
|---|---|---|---|
charging_profile_purpose | ChargingProfilePurposeType | — | |
connector_id | Int | — | |
id | Int | — | |
stack_level | Int | — |
Schema: ClearChargingProfileRequest
pub type Request {
Request(
charging_profile_purpose: option.Option(
charging_profile_purpose_type.ChargingProfilePurposeType,
),
connector_id: option.Option(Int),
id: option.Option(Int),
stack_level: option.Option(Int),
)
}
Constructors
-
Request( charging_profile_purpose: option.Option( charging_profile_purpose_type.ChargingProfilePurposeType, ), connector_id: option.Option(Int), id: option.Option(Int), stack_level: option.Option(Int), )
| Field | Type | Req | Description |
|---|---|---|---|
status | ClearChargingProfileStatus | ✓ |
Schema: ClearChargingProfileResponse
pub type Response {
Response(
status: clear_charging_profile_status.ClearChargingProfileStatus,
)
}
Constructors
-
Response( status: clear_charging_profile_status.ClearChargingProfileStatus, )
Values
pub fn new_request() -> Request
Construct a Request from its required fields, with every optional field set to None.
pub fn request_decoder() -> decode.Decoder(Request)
Decode a Request from its OCPP-J JSON object, enforcing schema constraints.
pub fn response_decoder() -> decode.Decoder(Response)
Decode a Response from its OCPP-J JSON object, enforcing schema constraints.