pub struct PricedPeriod {
pub start: DateTime,
pub energy_kwh: Number,
pub charging_hours: Number,
pub parking_hours: Number,
pub reservation_hours: Number,
pub max_current_a: Option<Number>,
pub min_current_a: Option<Number>,
pub max_power_kw: Option<Number>,
pub min_power_kw: Option<Number>,
pub tariff_id: Option<String>,
}tariffs only.Expand description
One charging period, reduced to what pricing needs.
Fields§
§start: DateTimeStart of the period. The period ends when the next one starts.
energy_kwh: NumberEnergy charged during this period, in kWh.
charging_hours: NumberTime spent charging during this period, in hours.
parking_hours: NumberTime spent parked and not charging during this period, in hours.
reservation_hours: NumberTime the EVSE was reserved during this period, in hours.
max_current_a: Option<Number>The highest current drawn during this period, in A, if measured.
min_current_a: Option<Number>The lowest current drawn during this period, in A, if measured.
max_power_kw: Option<Number>The highest power drawn during this period, in kW, if measured.
min_power_kw: Option<Number>The lowest power drawn during this period, in kW, if measured.
tariff_id: Option<String>The Tariff that applies to this period, when the CPO said which one.
Implementations§
Source§impl PricedPeriod
impl PricedPeriod
Sourcepub fn current_for_lower_bound(&self) -> Option<Number>
pub fn current_for_lower_bound(&self) -> Option<Number>
The current to evaluate a min_current/max_current restriction against.
min_current: Sum of the minimum current (in Amperes) over all phases … When the EV is charging with more than, or equal to, the defined amount of current, this TariffElement is/becomes active.
The restrictions describe the current during the period, so the measured maximum is used for a lower bound and the measured minimum for an upper bound — the pair that makes the restriction hold for the whole period.
Sourcepub fn current_for_upper_bound(&self) -> Option<Number>
pub fn current_for_upper_bound(&self) -> Option<Number>
The current to evaluate an upper bound against. See
current_for_lower_bound.
Sourcepub fn power_for_lower_bound(&self) -> Option<Number>
pub fn power_for_lower_bound(&self) -> Option<Number>
The power to evaluate a min_power restriction against, in kW.
Sourcepub fn power_for_upper_bound(&self) -> Option<Number>
pub fn power_for_upper_bound(&self) -> Option<Number>
The power to evaluate a max_power restriction against, in kW.
Trait Implementations§
Source§impl Clone for PricedPeriod
impl Clone for PricedPeriod
Source§fn clone(&self) -> PricedPeriod
fn clone(&self) -> PricedPeriod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more