Struct rust_ocpp::v1_6::messages::start_transaction::StartTransactionRequest
source · pub struct StartTransactionRequest {
pub connector_id: u64,
pub id_tag: String,
pub meter_start: i64,
pub reservation_id: Option<i64>,
pub timestamp: DateTime<Utc>,
}
Expand description
This section contains the field definition of the StartTransaction.req PDU sent by the Charge Point to the Central System. See also Start Transaction
Fields§
§connector_id: u64
Required. This identifies which connector of the Charge Point is used.
id_tag: String
Required. This contains the identifier for which a transaction has to be started.
meter_start: i64
Required. This contains the meter value in Wh for the connector at start of the transaction.
reservation_id: Option<i64>
Optional. This contains the id of the reservation that terminates as a result of this transaction.
timestamp: DateTime<Utc>
Required. This contains the date and time on which the transaction is started.
Trait Implementations§
source§impl Clone for StartTransactionRequest
impl Clone for StartTransactionRequest
source§fn clone(&self) -> StartTransactionRequest
fn clone(&self) -> StartTransactionRequest
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 StartTransactionRequest
impl Debug for StartTransactionRequest
source§impl Default for StartTransactionRequest
impl Default for StartTransactionRequest
source§fn default() -> StartTransactionRequest
fn default() -> StartTransactionRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StartTransactionRequest
impl<'de> Deserialize<'de> for StartTransactionRequest
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<StartTransactionRequest> for StartTransactionRequest
impl PartialEq<StartTransactionRequest> for StartTransactionRequest
source§fn eq(&self, other: &StartTransactionRequest) -> bool
fn eq(&self, other: &StartTransactionRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.