pub struct RequestStopTransactionRequest {
pub transaction_id: String,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · F — Remote Control · CSMS → Charging Station · CALL.
Fields§
§transaction_id: StringThe identifier of the transaction which the Charging Station is requested to stop.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl RequestStopTransactionRequest
impl RequestStopTransactionRequest
Sourcepub fn new(transaction_id: impl Into<String>) -> Self
pub fn new(transaction_id: impl Into<String>) -> Self
Creates a RequestStopTransactionRequest 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 RequestStopTransactionRequest
Source§impl<'de> Deserialize<'de> for RequestStopTransactionRequest
impl<'de> Deserialize<'de> for RequestStopTransactionRequest
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 RequestStopTransactionRequest
impl Request for RequestStopTransactionRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = RequestStopTransactionResponse
type Response = RequestStopTransactionResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for RequestStopTransactionRequest
impl StructuralPartialEq for RequestStopTransactionRequest
Source§impl Validate for RequestStopTransactionRequest
impl Validate for RequestStopTransactionRequest
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 RequestStopTransactionRequest
impl Freeze for RequestStopTransactionRequest
impl RefUnwindSafe for RequestStopTransactionRequest
impl Send for RequestStopTransactionRequest
impl Sync for RequestStopTransactionRequest
impl Unpin for RequestStopTransactionRequest
impl UnsafeUnpin for RequestStopTransactionRequest
impl UnwindSafe for RequestStopTransactionRequest
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