pub struct TotalUsage {
pub charging_time: i64,
pub custom_data: Option<CustomData>,
pub energy: f64,
pub idle_time: i64,
pub reservation_time: Option<i64>,
}Expand description
This contains the calculated usage of energy, charging time and idle time during a transaction.
Fields§
§charging_time: i64Total duration of the charging session (including the duration of charging and not charging), in seconds.
custom_data: Option<CustomData>§energy: f64§idle_time: i64Total duration of the charging session where the EV was not charging (no energy was transferred between EVSE and EV), in seconds.
reservation_time: Option<i64>Total time of reservation in seconds.
Trait Implementations§
Source§impl Clone for TotalUsage
impl Clone for TotalUsage
Source§fn clone(&self) -> TotalUsage
fn clone(&self) -> TotalUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TotalUsage
impl Debug for TotalUsage
Source§impl PartialEq for TotalUsage
impl PartialEq for TotalUsage
impl StructuralPartialEq for TotalUsage
Auto Trait Implementations§
impl Freeze for TotalUsage
impl RefUnwindSafe for TotalUsage
impl Send for TotalUsage
impl Sync for TotalUsage
impl Unpin for TotalUsage
impl UnsafeUnpin for TotalUsage
impl UnwindSafe for TotalUsage
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