Skip to main content

TransactionEventRequest

Struct TransactionEventRequest 

Source
pub struct TransactionEventRequest<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize = 16, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize = 16, const METER_VALUE_SAMPLED_VALUE_CAP: usize = 16, const METER_VALUE_TIMESTAMP_CAP: usize = 1024, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize = 1024> {
Show 13 fields pub cable_max_current: Option<i64>, pub custom_data: Option<CustomData>, pub event_type: TransactionEventEnum, pub evse: Option<EVSE>, pub id_token: Option<IdToken<ID_TOKEN_ADDITIONAL_INFO_CAP>>, pub meter_value: Option<Vec<MeterValue<METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP>, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP>>, pub number_of_phases_used: Option<i64>, pub offline: Option<bool>, pub reservation_id: Option<i64>, pub seq_no: i64, pub timestamp: String<TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>, pub transaction_info: Transaction, pub trigger_reason: TriggerReasonEnum,
}

Fields§

§cable_max_current: Option<i64>

The maximum current of the connected cable in Ampere (A).

§custom_data: Option<CustomData>§event_type: TransactionEventEnum§evse: Option<EVSE>§id_token: Option<IdToken<ID_TOKEN_ADDITIONAL_INFO_CAP>>§meter_value: Option<Vec<MeterValue<METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP>, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP>>§number_of_phases_used: Option<i64>

If the Charging Station is able to report the number of phases used, then it SHALL provide it. When omitted the CSMS may be able to determine the number of phases used via device management.

§offline: Option<bool>

Indication that this transaction event happened when the Charging Station was offline. Default = false, meaning: the event occurred when the Charging Station was online.

§reservation_id: Option<i64>

This contains the Id of the reservation that terminates as a result of this transaction.

§seq_no: i64

Incremental sequence number, helps with determining if all messages of a transaction have been received.

§timestamp: String<TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

The date and time at which this transaction event occurred.

§transaction_info: Transaction§trigger_reason: TriggerReasonEnum

Trait Implementations§

Source§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Action for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Available on non-crate feature alloc only.
Source§

const ACTION: &'static str = "TransactionEvent"

Source§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Clone for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Source§

fn clone( &self, ) -> TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Debug for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> PartialEq for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Source§

fn eq( &self, other: &TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>, ) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> StructuralPartialEq for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Auto Trait Implementations§

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Freeze for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> RefUnwindSafe for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Send for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Sync for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> Unpin for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> UnsafeUnpin for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

§

impl<const ID_TOKEN_ADDITIONAL_INFO_CAP: usize, const TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP: usize, const METER_VALUE_SAMPLED_VALUE_CAP: usize, const METER_VALUE_TIMESTAMP_CAP: usize, const TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP: usize> UnwindSafe for TransactionEventRequest<ID_TOKEN_ADDITIONAL_INFO_CAP, TRANSACTION_EVENT_REQUEST_METER_VALUE_CAP, METER_VALUE_SAMPLED_VALUE_CAP, METER_VALUE_TIMESTAMP_CAP, TRANSACTION_EVENT_REQUEST_TIMESTAMP_CAP>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.