pub struct TotalUsage {
pub energy: f64,
pub charging_time: i64,
pub idle_time: i64,
pub reservation_time: Option<i64>,
pub custom_data: Option<CustomData>,
}Expand description
This contains the calculated usage of energy, charging time and idle time during a transaction.
Fields§
§energy: f64§charging_time: i64Total duration of the charging session (including the duration of charging and not charging), in seconds.
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.
custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for TotalUsage
impl Clone for TotalUsage
Source§impl Debug for TotalUsage
impl Debug for TotalUsage
Source§impl<'de> Deserialize<'de> for TotalUsage
impl<'de> Deserialize<'de> for TotalUsage
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
Source§impl PartialEq for TotalUsage
impl PartialEq for TotalUsage
Source§impl Serialize for TotalUsage
impl Serialize 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