#[non_exhaustive]pub enum CsResponse {
Show 14 variants
Authorize(AuthorizeResponse),
BootNotification(BootNotificationResponse),
DataTransfer(DataTransferResponse),
DiagnosticsStatusNotification(DiagnosticsStatusNotificationResponse),
FirmwareStatusNotification(FirmwareStatusNotificationResponse),
Heartbeat(HeartbeatResponse),
LogStatusNotification(LogStatusNotificationResponse),
MeterValues(MeterValuesResponse),
SecurityEventNotification(SecurityEventNotificationResponse),
SignCertificate(SignCertificateResponse),
SignedFirmwareStatusNotification(SignedFirmwareStatusNotificationResponse),
StartTransaction(StartTransactionResponse),
StatusNotification(StatusNotificationResponse),
StopTransaction(StopTransactionResponse),
}Expand description
The CSMS’s answer to a CsRequest (CSMS → CS) in OCPP 1.6.
SEND-only actions have no response and are therefore absent from this enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Authorize(AuthorizeResponse)
Authorize.
BootNotification(BootNotificationResponse)
BootNotification.
DataTransfer(DataTransferResponse)
DataTransfer.
DiagnosticsStatusNotification(DiagnosticsStatusNotificationResponse)
DiagnosticsStatusNotification.
FirmwareStatusNotification(FirmwareStatusNotificationResponse)
FirmwareStatusNotification.
Heartbeat(HeartbeatResponse)
Heartbeat.
LogStatusNotification(LogStatusNotificationResponse)
LogStatusNotification.
MeterValues(MeterValuesResponse)
MeterValues.
SecurityEventNotification(SecurityEventNotificationResponse)
SecurityEventNotification.
SignCertificate(SignCertificateResponse)
SignCertificate.
SignedFirmwareStatusNotification(SignedFirmwareStatusNotificationResponse)
SignedFirmwareStatusNotification.
StartTransaction(StartTransactionResponse)
StartTransaction.
StatusNotification(StatusNotificationResponse)
StatusNotification.
StopTransaction(StopTransactionResponse)
StopTransaction.
Implementations§
Source§impl CsResponse
impl CsResponse
Sourcepub fn decode(
action: Action,
payload: &RawValue,
options: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode( action: Action, payload: &RawValue, options: &DecodeOptions, ) -> Result<Self, DecodeError>
Decodes a raw JSON payload for action, classifying every failure so the
caller can answer with the correct OCPP error code.
Trait Implementations§
Source§impl Clone for CsResponse
impl Clone for CsResponse
Source§impl Debug for CsResponse
impl Debug for CsResponse
Source§impl PartialEq for CsResponse
impl PartialEq for CsResponse
Source§impl Serialize for CsResponse
impl Serialize for CsResponse
impl StructuralPartialEq for CsResponse
Source§impl Validate for CsResponse
impl Validate for CsResponse
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for CsResponse
impl Freeze for CsResponse
impl Move for CsResponse
impl RefUnwindSafe for CsResponse
impl Send for CsResponse
impl Sync for CsResponse
impl Unpin for CsResponse
impl UnsafeUnpin for CsResponse
impl UnwindSafe for CsResponse
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