pub struct Transaction<CustomDataType = NoCustomData> {
pub charging_state: Option<ChargingStateEnum>,
pub custom_data: Option<CustomDataType>,
pub remote_start_id: Option<i64>,
pub stopped_reason: Option<ReasonEnum>,
pub time_spent_charging: Option<i64>,
pub transaction_id: String<36usize>,
}Expand description
Transaction urn:x-oca:ocpp:uid:2:233318
Fields§
§charging_state: Option<ChargingStateEnum>§custom_data: Option<CustomDataType>§remote_start_id: Option<i64>The ID given to remote start request (<<requeststarttransactionrequest, RequestStartTransactionRequest>>. This enables to CSMS to match the started transaction to the given start request.
stopped_reason: Option<ReasonEnum>§time_spent_charging: Option<i64>Transaction. Time_ Spent_ Charging. Elapsed_ Time urn:x-oca:ocpp:uid:1:569415 Contains the total time that energy flowed from EVSE to EV during the transaction (in seconds). Note that timeSpentCharging is smaller or equal to the duration of the transaction.
transaction_id: String<36usize>This contains the Id of the transaction.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for Transaction<CustomDataType>
impl<CustomDataType: Clone> Clone for Transaction<CustomDataType>
Source§fn clone(&self) -> Transaction<CustomDataType>
fn clone(&self) -> Transaction<CustomDataType>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CustomDataType: Debug> Debug for Transaction<CustomDataType>
impl<CustomDataType: Debug> Debug for Transaction<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for Transaction<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for Transaction<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for Transaction<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for Transaction<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for Transaction<CustomDataType>
Source§impl<CustomDataType> Serialize for Transaction<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for Transaction<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for Transaction<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for Transaction<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for Transaction<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for Transaction<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for Transaction<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for Transaction<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for Transaction<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for Transaction<CustomDataType>where
CustomDataType: UnwindSafe,
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