pub struct GeneratedEnergyValue {
pub date: NaiveDateTime,
pub value: Option<Energy>,
}Expand description
A timestamped Energy value. The value may be None when there wasn’t a
value at that timestamp
Fields§
§date: NaiveDateTimetimestamp of value
value: Option<Energy>the value measures at the timestamp or None if there wasn’t a value at that timestamp
Trait Implementations§
Source§impl Clone for GeneratedEnergyValue
impl Clone for GeneratedEnergyValue
Source§fn clone(&self) -> GeneratedEnergyValue
fn clone(&self) -> GeneratedEnergyValue
Returns a duplicate of the value. Read more
1.0.0 · 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 GeneratedEnergyValue
impl Debug for GeneratedEnergyValue
impl Copy for GeneratedEnergyValue
Auto Trait Implementations§
impl Freeze for GeneratedEnergyValue
impl !RefUnwindSafe for GeneratedEnergyValue
impl Send for GeneratedEnergyValue
impl Sync for GeneratedEnergyValue
impl Unpin for GeneratedEnergyValue
impl !UnwindSafe for GeneratedEnergyValue
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