Struct rust_ocpp::v1_6::messages::start_transaction::StartTransactionRequest
source · pub struct StartTransactionRequest {
pub connector_id: u32,
pub id_tag: String,
pub meter_start: i32,
pub reservation_id: Option<i32>,
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: u32
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: i32
Required. This contains the meter value in Wh for the connector at start of the transaction.
reservation_id: Option<i32>
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 for StartTransactionRequest
impl PartialEq 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 ==
.source§impl Serialize for StartTransactionRequest
impl Serialize for StartTransactionRequest
source§impl Validate for StartTransactionRequest
impl Validate for StartTransactionRequest
source§impl<'v_a> ValidateArgs<'v_a> for StartTransactionRequest
impl<'v_a> ValidateArgs<'v_a> for StartTransactionRequest
type Args = ()
fn validate_args(&self, args: Self::Args) -> Result<(), ValidationErrors>
impl StructuralPartialEq for StartTransactionRequest
Auto Trait Implementations§
impl RefUnwindSafe for StartTransactionRequest
impl Send for StartTransactionRequest
impl Sync for StartTransactionRequest
impl Unpin for StartTransactionRequest
impl UnwindSafe for StartTransactionRequest
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