Struct rust_ocpp::v2_0_1::messages::cost_updated::CostUpdatedRequest
source · [−]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
sourceimpl Clone for CostUpdatedRequest
impl Clone for CostUpdatedRequest
sourcefn clone(&self) -> CostUpdatedRequest
fn clone(&self) -> CostUpdatedRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CostUpdatedRequest
impl Debug for CostUpdatedRequest
sourceimpl<'de> Deserialize<'de> for CostUpdatedRequest
impl<'de> Deserialize<'de> for CostUpdatedRequest
sourcefn 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
sourceimpl PartialEq<CostUpdatedRequest> for CostUpdatedRequest
impl PartialEq<CostUpdatedRequest> for CostUpdatedRequest
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CostUpdatedRequest) -> bool
fn ne(&self, other: &CostUpdatedRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CostUpdatedRequest
impl Serialize for CostUpdatedRequest
sourceimpl Validate for CostUpdatedRequest
impl Validate for CostUpdatedRequest
fn validate(&self) -> Result<(), ValidationErrors>
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more