pub struct EVPriceRule<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
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<CustomDataType>§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<CustomDataType: Clone> Clone for EVPriceRule<CustomDataType>
impl<CustomDataType: Clone> Clone for EVPriceRule<CustomDataType>
Source§fn clone(&self) -> EVPriceRule<CustomDataType>
fn clone(&self) -> EVPriceRule<CustomDataType>
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<CustomDataType: Debug> Debug for EVPriceRule<CustomDataType>
impl<CustomDataType: Debug> Debug for EVPriceRule<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for EVPriceRule<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for EVPriceRule<CustomDataType>where
CustomDataType: Deserialize<'de>,
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<CustomDataType: PartialEq> PartialEq for EVPriceRule<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for EVPriceRule<CustomDataType>
Source§impl<CustomDataType> Serialize for EVPriceRule<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for EVPriceRule<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for EVPriceRule<CustomDataType>
Source§impl<CustomDataType> Validate for EVPriceRule<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for EVPriceRule<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for EVPriceRule<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for EVPriceRule<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for EVPriceRule<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for EVPriceRule<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for EVPriceRule<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for EVPriceRule<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for EVPriceRule<CustomDataType>where
CustomDataType: UnwindSafe,
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