pub struct Report {Show 17 fields
pub periods: Vec<PeriodReport>,
pub tariff_used: TariffOrigin,
pub tariff_reports: Vec<TariffReport>,
pub timezone: String,
pub billed_charging_time: Option<TimeDelta>,
pub billed_energy: Option<Kwh>,
pub billed_parking_time: Option<TimeDelta>,
pub total_charging_time: Option<TimeDelta>,
pub total_energy: Total<Kwh, Option<Kwh>>,
pub total_parking_time: Total<Option<TimeDelta>>,
pub total_time: Total<TimeDelta>,
pub total_cost: Total<Price, Option<Price>>,
pub total_energy_cost: Total<Option<Price>>,
pub total_fixed_cost: Total<Option<Price>>,
pub total_parking_cost: Total<Option<Price>>,
pub total_reservation_cost: Total<Option<Price>>,
pub total_time_cost: Total<Option<Price>>,
}Expand description
Structure containing the charge session priced according to the specified tariff.
The fields prefixed total correspond to CDR fields with the same name.
Fields§
§periods: Vec<PeriodReport>Charge session details per period.
tariff_used: TariffOriginThe index of the tariff that was used for pricing.
tariff_reports: Vec<TariffReport>A list of reports for each tariff found in the CDR or supplied to the cdr::price function.
The order of the tariff::Reports are the same as the order in which they are given.
timezone: StringTime-zone that was either specified or detected.
billed_charging_time: Option<TimeDelta>The total charging time after applying step-size.
billed_energy: Option<Kwh>The total energy after applying step-size.
billed_parking_time: Option<TimeDelta>The total parking time after applying step-size
total_charging_time: Option<TimeDelta>Total duration of the charging session (excluding not charging), in hours.
This is a total that has no direct source field in the CDR as it is calculated in the
cdr::price function.
total_energy: Total<Kwh, Option<Kwh>>Total energy charged, in kWh.
total_parking_time: Total<Option<TimeDelta>>Total duration of the charging session where the EV was not charging (no energy was transferred between EVSE and EV).
total_time: Total<TimeDelta>Total duration of the charging session (including the duration of charging and not charging).
total_cost: Total<Price, Option<Price>>Total sum of all the costs of this transaction in the specified currency.
total_energy_cost: Total<Option<Price>>Total sum of all the cost of all the energy used, in the specified currency.
total_fixed_cost: Total<Option<Price>>Total sum of all the fixed costs in the specified currency, except fixed price components of parking and reservation. The cost not depending on amount of time/energy used etc. Can contain costs like a start tariff.
total_parking_cost: Total<Option<Price>>Total sum of all the cost related to parking of this transaction, including fixed price components, in the specified currency.
total_reservation_cost: Total<Option<Price>>Total sum of all the cost related to a reservation of a Charge Point, including fixed price components, in the specified currency.
total_time_cost: Total<Option<Price>>Total sum of all the cost related to duration of charging during this transaction, in the specified currency.
Trait Implementations§
Source§impl IntoCaveat for Report
impl IntoCaveat for Report
Source§impl IntoCaveatDeferred for Report
impl IntoCaveatDeferred for Report
Source§fn into_caveat_deferred<K: Kind>(
self,
warnings: SetDeferred<K>,
) -> CaveatDeferred<Self, K>
fn into_caveat_deferred<K: Kind>( self, warnings: SetDeferred<K>, ) -> CaveatDeferred<Self, K>
CaveatDeferred<T> by supplying a list of warning Kinds.