pub struct Dimensions {
pub energy: Option<Dimension<Kwh>>,
pub flat: Dimension<()>,
pub duration_charging: Option<Dimension<TimeDelta>>,
pub duration_idle: Option<Dimension<TimeDelta>>,
}Expand description
A structure containing a report for each dimension of a CDRs charging [Period].
Fields§
§energy: Option<Dimension<Kwh>>Energy consumed. None if the CDR period had no energy dimension.
flat: Dimension<()>Flat fee without unit for step_size.
duration_charging: Option<Dimension<TimeDelta>>Duration of time charging. None if the CDR period had no time dimension.
duration_idle: Option<Dimension<TimeDelta>>Duration of time not charging. None if the CDR period had no parking-time dimension.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnsafeUnpin for Dimensions
impl UnwindSafe for Dimensions
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