pub struct RequestStartTransactionResponse {
pub status: RequestStartStopStatus,
pub status_info: Option<StatusInfo>,
pub transaction_id: Option<String>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · F — Remote Control · CSMS → Charging Station · CALL.
Fields§
§status: RequestStartStopStatusThe status member.
status_info: Option<StatusInfo>The statusInfo member.
transaction_id: Option<String>When the transaction was already started by the Charging Station before the RequestStartTransactionRequest was received, for example: cable plugged in first. This contains the transactionId of the already started transaction.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl RequestStartTransactionResponse
impl RequestStartTransactionResponse
Sourcepub fn new(status: RequestStartStopStatus) -> Self
pub fn new(status: RequestStartStopStatus) -> Self
Creates a RequestStartTransactionResponse from its required fields.
Sourcepub fn with_status_info(self, value: StatusInfo) -> Self
pub fn with_status_info(self, value: StatusInfo) -> Self
Sets the optional statusInfo field.
Sourcepub fn with_transaction_id(self, value: impl Into<String>) -> Self
pub fn with_transaction_id(self, value: impl Into<String>) -> Self
Sets the optional transactionId field.
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§
Source§impl<'de> Deserialize<'de> for RequestStartTransactionResponse
impl<'de> Deserialize<'de> for RequestStartTransactionResponse
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
impl Response for RequestStartTransactionResponse
impl Sealed for RequestStartTransactionResponse
impl StructuralPartialEq for RequestStartTransactionResponse
Source§impl Validate for RequestStartTransactionResponse
impl Validate for RequestStartTransactionResponse
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 RequestStartTransactionResponse
impl Freeze for RequestStartTransactionResponse
impl RefUnwindSafe for RequestStartTransactionResponse
impl Send for RequestStartTransactionResponse
impl Sync for RequestStartTransactionResponse
impl Unpin for RequestStartTransactionResponse
impl UnsafeUnpin for RequestStartTransactionResponse
impl UnwindSafe for RequestStartTransactionResponse
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