pub enum StationCall {
Show 36 variants
Authorize(AuthorizeRequest),
BatterySwap(BatterySwapRequest),
BootNotification(BootNotificationRequest),
ClearedChargingLimit(ClearedChargingLimitRequest),
ClosePeriodicEventStream(ClosePeriodicEventStreamRequest),
DataTransfer(DataTransferRequest),
FirmwareStatusNotification(FirmwareStatusNotificationRequest),
Get15118EVCertificate(Get15118EVCertificateRequest),
GetCertificateChainStatus(GetCertificateChainStatusRequest),
GetCertificateStatus(GetCertificateStatusRequest),
Heartbeat(HeartbeatRequest),
LogStatusNotification(LogStatusNotificationRequest),
MeterValues(MeterValuesRequest),
NotifyChargingLimit(NotifyChargingLimitRequest),
NotifyCustomerInformation(NotifyCustomerInformationRequest),
NotifyDERAlarm(NotifyDERAlarmRequest),
NotifyDERStartStop(NotifyDERStartStopRequest),
NotifyDisplayMessages(NotifyDisplayMessagesRequest),
NotifyEVChargingNeeds(NotifyEVChargingNeedsRequest),
NotifyEVChargingSchedule(NotifyEVChargingScheduleRequest),
NotifyEvent(NotifyEventRequest),
NotifyMonitoringReport(NotifyMonitoringReportRequest),
NotifyPriorityCharging(NotifyPriorityChargingRequest),
NotifyReport(NotifyReportRequest),
NotifySettlement(NotifySettlementRequest),
OpenPeriodicEventStream(OpenPeriodicEventStreamRequest),
PublishFirmwareStatusNotification(PublishFirmwareStatusNotificationRequest),
PullDynamicScheduleUpdate(PullDynamicScheduleUpdateRequest),
ReportChargingProfiles(ReportChargingProfilesRequest),
ReportDERControl(ReportDERControlRequest),
ReservationStatusUpdate(ReservationStatusUpdateRequest),
SecurityEventNotification(SecurityEventNotificationRequest),
SignCertificate(SignCertificateRequest),
StatusNotification(StatusNotificationRequest),
TransactionEvent(TransactionEventRequest),
VatNumberValidation(VatNumberValidationRequest),
}Expand description
Requests a Charging Station may send to the CSMS.
Variants§
Authorize(AuthorizeRequest)
BatterySwap(BatterySwapRequest)
BootNotification(BootNotificationRequest)
ClearedChargingLimit(ClearedChargingLimitRequest)
ClosePeriodicEventStream(ClosePeriodicEventStreamRequest)
DataTransfer(DataTransferRequest)
FirmwareStatusNotification(FirmwareStatusNotificationRequest)
Get15118EVCertificate(Get15118EVCertificateRequest)
GetCertificateChainStatus(GetCertificateChainStatusRequest)
GetCertificateStatus(GetCertificateStatusRequest)
Heartbeat(HeartbeatRequest)
LogStatusNotification(LogStatusNotificationRequest)
MeterValues(MeterValuesRequest)
NotifyChargingLimit(NotifyChargingLimitRequest)
NotifyCustomerInformation(NotifyCustomerInformationRequest)
NotifyDERAlarm(NotifyDERAlarmRequest)
NotifyDERStartStop(NotifyDERStartStopRequest)
NotifyDisplayMessages(NotifyDisplayMessagesRequest)
NotifyEVChargingNeeds(NotifyEVChargingNeedsRequest)
NotifyEVChargingSchedule(NotifyEVChargingScheduleRequest)
NotifyEvent(NotifyEventRequest)
NotifyMonitoringReport(NotifyMonitoringReportRequest)
NotifyPriorityCharging(NotifyPriorityChargingRequest)
NotifyReport(NotifyReportRequest)
NotifySettlement(NotifySettlementRequest)
OpenPeriodicEventStream(OpenPeriodicEventStreamRequest)
PublishFirmwareStatusNotification(PublishFirmwareStatusNotificationRequest)
PullDynamicScheduleUpdate(PullDynamicScheduleUpdateRequest)
ReportChargingProfiles(ReportChargingProfilesRequest)
ReportDERControl(ReportDERControlRequest)
ReservationStatusUpdate(ReservationStatusUpdateRequest)
SecurityEventNotification(SecurityEventNotificationRequest)
SignCertificate(SignCertificateRequest)
StatusNotification(StatusNotificationRequest)
TransactionEvent(TransactionEventRequest)
VatNumberValidation(VatNumberValidationRequest)
Implementations§
Source§impl StationCall
impl StationCall
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§
Source§impl Clone for StationCall
impl Clone for StationCall
Source§impl Debug for StationCall
impl Debug for StationCall
Source§impl PartialEq for StationCall
impl PartialEq for StationCall
impl StructuralPartialEq for StationCall
Auto Trait Implementations§
impl Freeze for StationCall
impl RefUnwindSafe for StationCall
impl Send for StationCall
impl Sync for StationCall
impl Unpin for StationCall
impl UnsafeUnpin for StationCall
impl UnwindSafe for StationCall
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