Skip to main content

CsRequest

Enum CsRequest 

Source
#[non_exhaustive]
pub enum CsRequest {
Show 38 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), NotifyPeriodicEventStream(NotifyPeriodicEventStreamRequest), NotifyPriorityCharging(NotifyPriorityChargingRequest), NotifyReport(NotifyReportRequest), NotifySettlement(NotifySettlementRequest), NotifyWebPaymentStarted(NotifyWebPaymentStartedRequest), OpenPeriodicEventStream(OpenPeriodicEventStreamRequest), PublishFirmwareStatusNotification(PublishFirmwareStatusNotificationRequest), PullDynamicScheduleUpdate(PullDynamicScheduleUpdateRequest), ReportChargingProfiles(ReportChargingProfilesRequest), ReportDERControl(ReportDERControlRequest), ReservationStatusUpdate(ReservationStatusUpdateRequest), SecurityEventNotification(SecurityEventNotificationRequest), SignCertificate(SignCertificateRequest), StatusNotification(StatusNotificationRequest), TransactionEvent(TransactionEventRequest), VatNumberValidation(VatNumberValidationRequest),
}
Expand description

A request originated by the Charging Station (CS → CSMS) in OCPP 2.1.

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(AuthorizeRequest)

Authorize.

§

BatterySwap(BatterySwapRequest)

BatterySwap.

§

BootNotification(BootNotificationRequest)

BootNotification.

§

ClearedChargingLimit(ClearedChargingLimitRequest)

ClearedChargingLimit.

§

ClosePeriodicEventStream(ClosePeriodicEventStreamRequest)

ClosePeriodicEventStream.

§

DataTransfer(DataTransferRequest)

DataTransfer.

§

FirmwareStatusNotification(FirmwareStatusNotificationRequest)

FirmwareStatusNotification.

§

Get15118EVCertificate(Get15118EVCertificateRequest)

Get15118EVCertificate.

§

GetCertificateChainStatus(GetCertificateChainStatusRequest)

GetCertificateChainStatus.

§

GetCertificateStatus(GetCertificateStatusRequest)

GetCertificateStatus.

§

Heartbeat(HeartbeatRequest)

Heartbeat.

§

LogStatusNotification(LogStatusNotificationRequest)

LogStatusNotification.

§

MeterValues(MeterValuesRequest)

MeterValues.

§

NotifyChargingLimit(NotifyChargingLimitRequest)

NotifyChargingLimit.

§

NotifyCustomerInformation(NotifyCustomerInformationRequest)

NotifyCustomerInformation.

§

NotifyDERAlarm(NotifyDERAlarmRequest)

NotifyDERAlarm.

§

NotifyDERStartStop(NotifyDERStartStopRequest)

NotifyDERStartStop.

§

NotifyDisplayMessages(NotifyDisplayMessagesRequest)

NotifyDisplayMessages.

§

NotifyEVChargingNeeds(NotifyEVChargingNeedsRequest)

NotifyEVChargingNeeds.

§

NotifyEVChargingSchedule(NotifyEVChargingScheduleRequest)

NotifyEVChargingSchedule.

§

NotifyEvent(NotifyEventRequest)

NotifyEvent.

§

NotifyMonitoringReport(NotifyMonitoringReportRequest)

NotifyMonitoringReport.

§

NotifyPeriodicEventStream(NotifyPeriodicEventStreamRequest)

NotifyPeriodicEventStream.

§

NotifyPriorityCharging(NotifyPriorityChargingRequest)

NotifyPriorityCharging.

§

NotifyReport(NotifyReportRequest)

NotifyReport.

§

NotifySettlement(NotifySettlementRequest)

NotifySettlement.

§

NotifyWebPaymentStarted(NotifyWebPaymentStartedRequest)

NotifyWebPaymentStarted.

§

OpenPeriodicEventStream(OpenPeriodicEventStreamRequest)

OpenPeriodicEventStream.

§

PublishFirmwareStatusNotification(PublishFirmwareStatusNotificationRequest)

PublishFirmwareStatusNotification.

§

PullDynamicScheduleUpdate(PullDynamicScheduleUpdateRequest)

PullDynamicScheduleUpdate.

§

ReportChargingProfiles(ReportChargingProfilesRequest)

ReportChargingProfiles.

§

ReportDERControl(ReportDERControlRequest)

ReportDERControl.

§

ReservationStatusUpdate(ReservationStatusUpdateRequest)

ReservationStatusUpdate.

§

SecurityEventNotification(SecurityEventNotificationRequest)

SecurityEventNotification.

§

SignCertificate(SignCertificateRequest)

SignCertificate.

§

StatusNotification(StatusNotificationRequest)

StatusNotification.

§

TransactionEvent(TransactionEventRequest)

TransactionEvent.

§

VatNumberValidation(VatNumberValidationRequest)

VatNumberValidation.

Implementations§

Source§

impl CsRequest

Source

pub const fn action(&self) -> Action

The action this payload belongs to.

Source

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.

Source

pub fn to_json(&self) -> Result<String, Error>

Serializes the payload object (without the OCPP-J frame).

Trait Implementations§

Source§

impl Clone for CsRequest

Source§

fn clone(&self) -> CsRequest

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CsRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for CsRequest

Source§

fn eq(&self, other: &CsRequest) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CsRequest

Source§

fn serialize<S: Serializer>(&self, ser: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CsRequest

Source§

impl Validate for CsRequest

Source§

fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)

Appends this value’s violations to out, relative to path.
Source§

fn validate(&self) -> Result<(), Violations>

Validates this value from the payload root.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.