pub struct PriceRule {
pub parking_fee_period: Option<i64>,
pub carbon_dioxide_emission: Option<i64>,
pub renewable_generation_percentage: Option<i64>,
pub energy_fee: RationalNumber,
pub parking_fee: Option<RationalNumber>,
pub power_range_start: RationalNumber,
pub custom_data: Option<CustomData>,
}Expand description
Part of ISO 15118-20 price schedule.
Fields§
§parking_fee_period: Option<i64>The duration of the parking fee period (in seconds). When the time enters into a ParkingFeePeriod, the ParkingFee will apply to the session. .
carbon_dioxide_emission: Option<i64>Number of grams of CO2 per kWh.
renewable_generation_percentage: Option<i64>Percentage of the power that is created by renewable resources.
energy_fee: RationalNumber§parking_fee: Option<RationalNumber>§power_range_start: RationalNumber§custom_data: Option<CustomData>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PriceRule
impl<'de> Deserialize<'de> for PriceRule
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
impl StructuralPartialEq for PriceRule
Auto Trait Implementations§
impl Freeze for PriceRule
impl RefUnwindSafe for PriceRule
impl Send for PriceRule
impl Sync for PriceRule
impl Unpin for PriceRule
impl UnsafeUnpin for PriceRule
impl UnwindSafe for PriceRule
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