pub enum CsmsCall {
Show 19 variants
CancelReservation(CancelReservationRequest),
ChangeAvailability(ChangeAvailabilityRequest),
ChangeConfiguration(ChangeConfigurationRequest),
ClearCache(ClearCacheRequest),
ClearChargingProfile(ClearChargingProfileRequest),
DataTransfer(DataTransferRequest),
GetCompositeSchedule(GetCompositeScheduleRequest),
GetConfiguration(GetConfigurationRequest),
GetDiagnostics(GetDiagnosticsRequest),
GetLocalListVersion(GetLocalListVersionRequest),
RemoteStartTransaction(RemoteStartTransactionRequest),
RemoteStopTransaction(RemoteStopTransactionRequest),
ReserveNow(ReserveNowRequest),
Reset(ResetRequest),
SendLocalList(SendLocalListRequest),
SetChargingProfile(SetChargingProfileRequest),
TriggerMessage(TriggerMessageRequest),
UnlockConnector(UnlockConnectorRequest),
UpdateFirmware(UpdateFirmwareRequest),
}Expand description
Requests the CSMS may send to a Charging Station.
Variants§
CancelReservation(CancelReservationRequest)
ChangeAvailability(ChangeAvailabilityRequest)
ChangeConfiguration(ChangeConfigurationRequest)
ClearCache(ClearCacheRequest)
ClearChargingProfile(ClearChargingProfileRequest)
DataTransfer(DataTransferRequest)
GetCompositeSchedule(GetCompositeScheduleRequest)
GetConfiguration(GetConfigurationRequest)
GetDiagnostics(GetDiagnosticsRequest)
GetLocalListVersion(GetLocalListVersionRequest)
RemoteStartTransaction(RemoteStartTransactionRequest)
RemoteStopTransaction(RemoteStopTransactionRequest)
ReserveNow(ReserveNowRequest)
Reset(ResetRequest)
SendLocalList(SendLocalListRequest)
SetChargingProfile(SetChargingProfileRequest)
TriggerMessage(TriggerMessageRequest)
UnlockConnector(UnlockConnectorRequest)
UpdateFirmware(UpdateFirmwareRequest)
Implementations§
Source§impl CsmsCall
impl CsmsCall
pub const fn action(&self) -> Action
Sourcepub fn decode(action: &str, payload: &str) -> Result<Self, DecodeError>
pub fn decode(action: &str, payload: &str) -> Result<Self, DecodeError>
Decodes and validates the payload of a CALL.
Sourcepub fn from_value(action: &str, payload: Value) -> Result<Self, DecodeError>
pub fn from_value(action: &str, payload: Value) -> Result<Self, DecodeError>
Decodes and validates a request given as a JSON value (e.g. from the HTTP API).
Sourcepub fn to_payload(&self) -> Value
pub fn to_payload(&self) -> Value
Serializes the request payload.
Trait Implementations§
impl StructuralPartialEq for CsmsCall
Auto Trait Implementations§
impl Freeze for CsmsCall
impl RefUnwindSafe for CsmsCall
impl Send for CsmsCall
impl Sync for CsmsCall
impl Unpin for CsmsCall
impl UnsafeUnpin for CsmsCall
impl UnwindSafe for CsmsCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more