pub struct CostDetails {
pub charging_periods: Option<Vec<ChargingPeriod>>,
pub total_cost: TotalCost,
pub total_usage: TotalUsage,
pub failure_to_calculate: Option<bool>,
pub failure_reason: Option<String>,
pub custom_data: Option<CustomData>,
}Expand description
CostDetailsType contains the cost as calculated by Charging Station based on provided TariffType. NOTE: Reservation is not shown as a chargingPeriod, because it took place outside of the transaction.
Fields§
§charging_periods: Option<Vec<ChargingPeriod>>§total_cost: TotalCost§total_usage: TotalUsage§failure_to_calculate: Option<bool>If set to true, then Charging Station has failed to calculate the cost.
failure_reason: Option<String>Optional human-readable reason text in case of failure to calculate.
custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for CostDetails
impl Clone for CostDetails
Source§impl Debug for CostDetails
impl Debug for CostDetails
Source§impl<'de> Deserialize<'de> for CostDetails
impl<'de> Deserialize<'de> for CostDetails
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 CostDetails
impl PartialEq for CostDetails
Source§impl Serialize for CostDetails
impl Serialize for CostDetails
impl StructuralPartialEq for CostDetails
Auto Trait Implementations§
impl Freeze for CostDetails
impl RefUnwindSafe for CostDetails
impl Send for CostDetails
impl Sync for CostDetails
impl Unpin for CostDetails
impl UnsafeUnpin for CostDetails
impl UnwindSafe for CostDetails
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