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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.