pub struct TotalUsage<CustomDataType = NoCustomData> {
pub charging_time: i64,
pub custom_data: Option<CustomDataType>,
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<CustomDataType>§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<CustomDataType: Clone> Clone for TotalUsage<CustomDataType>
impl<CustomDataType: Clone> Clone for TotalUsage<CustomDataType>
Source§fn clone(&self) -> TotalUsage<CustomDataType>
fn clone(&self) -> TotalUsage<CustomDataType>
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<CustomDataType: Debug> Debug for TotalUsage<CustomDataType>
impl<CustomDataType: Debug> Debug for TotalUsage<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for TotalUsage<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for TotalUsage<CustomDataType>where
CustomDataType: Deserialize<'de>,
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<CustomDataType: PartialEq> PartialEq for TotalUsage<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for TotalUsage<CustomDataType>
Source§impl<CustomDataType> Serialize for TotalUsage<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for TotalUsage<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for TotalUsage<CustomDataType>
Source§impl<CustomDataType> Validate for TotalUsage<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for TotalUsage<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for TotalUsage<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for TotalUsage<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for TotalUsage<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for TotalUsage<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for TotalUsage<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for TotalUsage<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for TotalUsage<CustomDataType>where
CustomDataType: UnwindSafe,
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