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
sourceimpl Clone for StartTransactionRequest
impl Clone for StartTransactionRequest
sourcefn clone(&self) -> StartTransactionRequest
fn clone(&self) -> StartTransactionRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StartTransactionRequest
impl Debug for StartTransactionRequest
sourceimpl<'de> Deserialize<'de> for StartTransactionRequest
impl<'de> Deserialize<'de> for StartTransactionRequest
sourcefn 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
sourceimpl PartialEq<StartTransactionRequest> for StartTransactionRequest
impl PartialEq<StartTransactionRequest> for StartTransactionRequest
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &StartTransactionRequest) -> bool
fn ne(&self, other: &StartTransactionRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for StartTransactionRequest
impl Serialize for StartTransactionRequest
sourceimpl Validate for StartTransactionRequest
impl Validate for StartTransactionRequest
fn validate(&self) -> Result<(), ValidationErrors>
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more