pub struct TotalCost {
pub charging_time: Option<Price>,
pub currency: String<3usize>,
pub custom_data: Option<CustomData>,
pub energy: Option<Price>,
pub fixed: Option<Price>,
pub idle_time: Option<Price>,
pub reservation_fixed: Option<Price>,
pub reservation_time: Option<Price>,
pub total: TotalPrice,
pub type_of_cost: TariffCostEnum,
}Expand description
This contains the cost calculated during a transaction. It is used both for running cost and final cost of the transaction.
Fields§
§charging_time: Option<Price>§currency: String<3usize>Currency of the costs in ISO 4217 Code.
custom_data: Option<CustomData>§energy: Option<Price>§fixed: Option<Price>§idle_time: Option<Price>§reservation_fixed: Option<Price>§reservation_time: Option<Price>§total: TotalPrice§type_of_cost: TariffCostEnumTrait Implementations§
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