pub struct TotalCost {
pub currency: String,
pub type_of_cost: TariffCostEnum,
pub fixed: Option<Price>,
pub energy: Option<Price>,
pub charging_time: Option<Price>,
pub idle_time: Option<Price>,
pub reservation_time: Option<Price>,
pub reservation_fixed: Option<Price>,
pub total: TotalPrice,
pub custom_data: Option<CustomData>,
}Expand description
This contains the cost calculated during a transaction. It is used both for running cost and final cost of the transaction.
Fields§
§currency: StringCurrency of the costs in ISO 4217 Code.
type_of_cost: TariffCostEnum§fixed: Option<Price>§energy: Option<Price>§charging_time: Option<Price>§idle_time: Option<Price>§reservation_time: Option<Price>§reservation_fixed: Option<Price>§total: TotalPrice§custom_data: Option<CustomData>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TotalCost
impl<'de> Deserialize<'de> for TotalCost
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
impl StructuralPartialEq for TotalCost
Auto Trait Implementations§
impl Freeze for TotalCost
impl RefUnwindSafe for TotalCost
impl Send for TotalCost
impl Sync for TotalCost
impl Unpin for TotalCost
impl UnsafeUnpin for TotalCost
impl UnwindSafe for TotalCost
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