pub struct TransactionEventResponse<CustomDataType = NoCustomData> {
pub charging_priority: Option<i64>,
pub custom_data: Option<CustomDataType>,
pub id_token_info: Option<IdTokenInfo<CustomDataType>>,
pub total_cost: Option<f64>,
pub transaction_limit: Option<TransactionLimit<CustomDataType>>,
pub updated_personal_message: Option<MessageContent<CustomDataType>>,
pub updated_personal_message_extra: Option<Vec<MessageContent<CustomDataType>, 4usize>>,
}Fields§
§charging_priority: Option<i64>Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> is temporarily, so it may not be set in the <<cmn_idtokeninfotype,IdTokenInfoType>> afterwards. Also the chargingPriority in <<transactioneventresponse,TransactionEventResponse>> has a higher priority than the one in <<cmn_idtokeninfotype,IdTokenInfoType>>.
custom_data: Option<CustomDataType>§id_token_info: Option<IdTokenInfo<CustomDataType>>§total_cost: Option<f64>When eventType of TransactionEventRequest is Updated, then this value contains the running cost. When eventType of TransactionEventRequest is Ended, then this contains the final total cost of this transaction, including taxes, in the currency configured with the Configuration Variable: Currency. Absence of this value does not imply that the transaction was free. To indicate a free transaction, the CSMS SHALL send a value of 0.00.
transaction_limit: Option<TransactionLimit<CustomDataType>>§updated_personal_message: Option<MessageContent<CustomDataType>>§updated_personal_message_extra: Option<Vec<MessageContent<CustomDataType>, 4usize>>Trait Implementations§
Source§impl<CustomDataType> Action for TransactionEventResponse<CustomDataType>
Available on crate feature alloc only.
impl<CustomDataType> Action for TransactionEventResponse<CustomDataType>
alloc only.const ACTION: &'static str = "TransactionEvent"
Source§fn to_json_slice<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error>where
Self: Serialize,
fn to_json_slice<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error>where
Self: Serialize,
buf, returning the written
slice. No allocation: the caller owns and sizes the buffer, same as
every other bounded type in this crate.Source§fn to_json_str<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf str, Error>where
Self: Serialize,
fn to_json_str<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf str, Error>where
Self: Serialize,
Action::to_json_slice, but returns the written bytes as
&str. JSON emitted by serde-json-core is always valid UTF-8.Source§fn from_json_slice(data: &[u8]) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
fn from_json_slice(data: &[u8]) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
data only transiently: Self owns everything via
heapless collections, so nothing outlives this call.Source§fn from_json_str(data: &str) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
fn from_json_str(data: &str) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
Action::from_json_slice, but takes a &str instead of
raw bytes (skipping the UTF-8 check from_json_slice would
otherwise need, since &str already guarantees it).Source§impl<CustomDataType: Clone> Clone for TransactionEventResponse<CustomDataType>
impl<CustomDataType: Clone> Clone for TransactionEventResponse<CustomDataType>
Source§fn clone(&self) -> TransactionEventResponse<CustomDataType>
fn clone(&self) -> TransactionEventResponse<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for TransactionEventResponse<CustomDataType>
impl<CustomDataType: Debug> Debug for TransactionEventResponse<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for TransactionEventResponse<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for TransactionEventResponse<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>,
Source§impl<CustomDataType: PartialEq> PartialEq for TransactionEventResponse<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for TransactionEventResponse<CustomDataType>
Source§impl<CustomDataType> Serialize for TransactionEventResponse<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for TransactionEventResponse<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for TransactionEventResponse<CustomDataType>
Source§impl<CustomDataType> Validate for TransactionEventResponse<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for TransactionEventResponse<CustomDataType>
alloc and validate only.