Report

Struct Report 

Source
pub struct Report {
Show 18 fields pub warnings: BTreeMap<String, Vec<WarningKind>>, 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§

§warnings: BTreeMap<String, Vec<WarningKind>>

Warnings from parsing a CDR.

Each entry in the map is an element path and a list of associated warnings.

§periods: Vec<PeriodReport>

Charge session details per period.

§tariff_used: TariffOrigin

The 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: String

Time-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 Debug for Report

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Report

§

impl RefUnwindSafe for Report

§

impl Send for Report

§

impl Sync for Report

§

impl Unpin for Report

§

impl UnwindSafe for Report

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more