Struct rust_ocpp::v2_0_1::messages::cost_updated::CostUpdatedRequest
source · pub struct CostUpdatedRequest {
pub total_cost: f32,
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: f32
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 for CostUpdatedRequest
impl PartialEq 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 ==
.source§impl Serialize for CostUpdatedRequest
impl Serialize for CostUpdatedRequest
source§impl Validate for CostUpdatedRequest
impl Validate for CostUpdatedRequest
source§impl<'v_a> ValidateArgs<'v_a> for CostUpdatedRequest
impl<'v_a> ValidateArgs<'v_a> for CostUpdatedRequest
type Args = ()
fn validate_args(&self, args: Self::Args) -> Result<(), ValidationErrors>
impl StructuralPartialEq for CostUpdatedRequest
Auto Trait Implementations§
impl RefUnwindSafe for CostUpdatedRequest
impl Send for CostUpdatedRequest
impl Sync for CostUpdatedRequest
impl Unpin for CostUpdatedRequest
impl UnwindSafe for CostUpdatedRequest
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