pub struct EVPriceRule {
pub energy_fee: f64,
pub power_range_start: f64,
pub custom_data: Option<CustomData>,
}Expand description
(2.1) An entry in price schedule over time for which EV is willing to discharge.
Fields§
§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.
custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for EVPriceRule
impl Clone for EVPriceRule
Source§impl Debug for EVPriceRule
impl Debug for EVPriceRule
Source§impl<'de> Deserialize<'de> for EVPriceRule
impl<'de> Deserialize<'de> for EVPriceRule
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 EVPriceRule
impl PartialEq for EVPriceRule
Source§impl Serialize for EVPriceRule
impl Serialize 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