Struct rust_ocpp::v1_6::messages::stop_transaction::StopTransactionRequest
source · pub struct StopTransactionRequest {
pub id_tag: Option<String>,
pub meter_stop: i64,
pub timestamp: DateTime<Utc>,
pub transaction_id: i64,
pub reason: Option<Reason>,
pub transaction_data: Option<Vec<MeterValue>>,
}
Expand description
This contains the field definition of the StopTransaction.req PDU sent by the Charge Point to the Central System. See also Stop Transaction
Fields§
§id_tag: Option<String>
Required.
meter_stop: i64
Optional. Only filled in when request applies to a specific connector.
timestamp: DateTime<Utc>
Required. This contains the date and time on which the transaction is stopped.
transaction_id: i64
Required. This contains the transaction-id as received by the StartTransactionResponse
reason: Option<Reason>
Optional. This contains the reason why the transaction was stopped. MAY only be omitted when the Reason is “Local”.
transaction_data: Option<Vec<MeterValue>>
Optional. This contains transaction usage details relevant for billing purposes.
Trait Implementations§
source§impl Clone for StopTransactionRequest
impl Clone for StopTransactionRequest
source§fn clone(&self) -> StopTransactionRequest
fn clone(&self) -> StopTransactionRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StopTransactionRequest
impl Debug for StopTransactionRequest
source§impl Default for StopTransactionRequest
impl Default for StopTransactionRequest
source§fn default() -> StopTransactionRequest
fn default() -> StopTransactionRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StopTransactionRequest
impl<'de> Deserialize<'de> for StopTransactionRequest
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 PartialEq<StopTransactionRequest> for StopTransactionRequest
impl PartialEq<StopTransactionRequest> for StopTransactionRequest
source§fn eq(&self, other: &StopTransactionRequest) -> bool
fn eq(&self, other: &StopTransactionRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.