pub struct ComponentSet {
pub energy: Option<Component>,
pub flat: Option<Component>,
pub duration_charging: Option<Component>,
pub duration_idle: Option<Component>,
}Expand description
A set of price Components, one for each dimension.
See: https://github.com/ocpi/ocpi/blob/release-2.2.1-bugfixes/mod_tariffs.asciidoc#142-pricecomponent-class. See: https://github.com/ocpi/ocpi/blob/release-2.2.1-bugfixes/mod_tariffs.asciidoc#145-tariffdimensiontype-enum.
Fields§
§energy: Option<Component>Energy consumed.
flat: Option<Component>Flat fee without unit for step_size.
duration_charging: Option<Component>Duration of time charging.
duration_idle: Option<Component>Duration of time not charging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentSet
impl RefUnwindSafe for ComponentSet
impl Send for ComponentSet
impl Sync for ComponentSet
impl Unpin for ComponentSet
impl UnsafeUnpin for ComponentSet
impl UnwindSafe for ComponentSet
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