Struct rust_ocpp::v2_0_1::messages::cost_updated::CostUpdatedRequest
source · pub struct CostUpdatedRequest {
pub total_cost: f64,
pub transaction_id: String,
}
Expand description
CostUpdatedRequest, sent by the CSMS to the Charging Station.
With this request the CSMS can send the current cost of a transaction to a Charging Station.
Fields§
§total_cost: f64
Current total cost, based on the information known by the CSMS, of the transaction including taxes. In the currency configured with the configuration Variable: [Currency]
transaction_id: String
Transaction Id of the transaction the current cost are asked for.
Trait Implementations§
source§impl Clone for CostUpdatedRequest
impl Clone for CostUpdatedRequest
source§fn clone(&self) -> CostUpdatedRequest
fn clone(&self) -> CostUpdatedRequest
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 CostUpdatedRequest
impl Debug for CostUpdatedRequest
source§impl Default for CostUpdatedRequest
impl Default for CostUpdatedRequest
source§fn default() -> CostUpdatedRequest
fn default() -> CostUpdatedRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CostUpdatedRequest
impl<'de> Deserialize<'de> for CostUpdatedRequest
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<CostUpdatedRequest> for CostUpdatedRequest
impl PartialEq<CostUpdatedRequest> for CostUpdatedRequest
source§fn eq(&self, other: &CostUpdatedRequest) -> bool
fn eq(&self, other: &CostUpdatedRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.