pub struct NotifyWebPaymentStartedRequest {
pub evse_id: i32,
pub timeout: i32,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · C — Authorization · CSMS → Charging Station · CALL.
Fields§
§evse_id: i32EVSE id for which transaction is requested.
timeout: i32Timeout value in seconds after which no result of web payment process (e.g. QR code scanning) is to be expected anymore.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NotifyWebPaymentStartedRequest
impl NotifyWebPaymentStartedRequest
Sourcepub fn new(evse_id: i32, timeout: i32) -> Self
pub fn new(evse_id: i32, timeout: i32) -> Self
Creates a NotifyWebPaymentStartedRequest from its required fields.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
impl Confirmed for NotifyWebPaymentStartedRequest
Source§impl<'de> Deserialize<'de> for NotifyWebPaymentStartedRequest
impl<'de> Deserialize<'de> for NotifyWebPaymentStartedRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Request for NotifyWebPaymentStartedRequest
impl Request for NotifyWebPaymentStartedRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = NotifyWebPaymentStartedResponse
type Response = NotifyWebPaymentStartedResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for NotifyWebPaymentStartedRequest
impl StructuralPartialEq for NotifyWebPaymentStartedRequest
Source§impl Validate for NotifyWebPaymentStartedRequest
impl Validate for NotifyWebPaymentStartedRequest
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 NotifyWebPaymentStartedRequest
impl Freeze for NotifyWebPaymentStartedRequest
impl Move for NotifyWebPaymentStartedRequest
impl RefUnwindSafe for NotifyWebPaymentStartedRequest
impl Send for NotifyWebPaymentStartedRequest
impl Sync for NotifyWebPaymentStartedRequest
impl Unpin for NotifyWebPaymentStartedRequest
impl UnsafeUnpin for NotifyWebPaymentStartedRequest
impl UnwindSafe for NotifyWebPaymentStartedRequest
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