pub struct EVPriceRule {
pub custom_data: Option<CustomData>,
pub energy_fee: f64,
pub power_range_start: f64,
}Expand description
(2.1) An entry in price schedule over time for which EV is willing to discharge.
Fields§
§custom_data: Option<CustomData>§energy_fee: f64Cost per kWh.
power_range_start: f64The EnergyFee applies between this value and the value of the PowerRangeStart of the subsequent EVPriceRule. If the power is below this value, the EnergyFee of the previous EVPriceRule applies. Negative values are used for discharging.
Trait Implementations§
Source§impl Clone for EVPriceRule
impl Clone for EVPriceRule
Source§fn clone(&self) -> EVPriceRule
fn clone(&self) -> EVPriceRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EVPriceRule
impl Debug for EVPriceRule
Source§impl PartialEq for EVPriceRule
impl PartialEq for EVPriceRule
impl StructuralPartialEq for EVPriceRule
Auto Trait Implementations§
impl Freeze for EVPriceRule
impl RefUnwindSafe for EVPriceRule
impl Send for EVPriceRule
impl Sync for EVPriceRule
impl Unpin for EVPriceRule
impl UnsafeUnpin for EVPriceRule
impl UnwindSafe for EVPriceRule
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