pub struct Tariff {Show 13 fields
pub tariff_id: String,
pub description: Option<Vec<MessageContent>>,
pub currency: String,
pub energy: Option<TariffEnergy>,
pub valid_from: Option<DateTime>,
pub charging_time: Option<TariffTime>,
pub idle_time: Option<TariffTime>,
pub fixed_fee: Option<TariffFixed>,
pub reservation_time: Option<TariffTime>,
pub reservation_fixed: Option<TariffFixed>,
pub min_cost: Option<Price>,
pub max_cost: Option<Price>,
pub custom_data: Option<CustomData>,
}Expand description
A tariff is described by fields with prices for: energy, charging time, idle time, fixed fee, reservation time, reservation fixed fee. + Each of these fields may have (optional) conditions that specify when a price is applicable. + The description contains a human-readable explanation of the tariff to be shown to the user. + The other fields are parameters that define the tariff. These are used by the charging station to calculate the price.
Fields§
§tariff_id: StringUnique id of tariff
description: Option<Vec<MessageContent>>§currency: StringCurrency code according to ISO 4217
energy: Option<TariffEnergy>§valid_from: Option<DateTime>Time when this tariff becomes active. When absent, it is immediately active.
charging_time: Option<TariffTime>§idle_time: Option<TariffTime>§fixed_fee: Option<TariffFixed>§reservation_time: Option<TariffTime>§reservation_fixed: Option<TariffFixed>§min_cost: Option<Price>§max_cost: Option<Price>§custom_data: Option<CustomData>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tariff
impl<'de> Deserialize<'de> for Tariff
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 Tariff
Auto Trait Implementations§
impl Freeze for Tariff
impl RefUnwindSafe for Tariff
impl Send for Tariff
impl Sync for Tariff
impl Unpin for Tariff
impl UnsafeUnpin for Tariff
impl UnwindSafe for Tariff
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