pub struct EnergyReading {
pub energy_j: Option<f64>,
pub charge_c: Option<f64>,
pub duration_s: Option<f64>,
pub extra: Map<String, Value>,
}Expand description
Integrated energy reading from an energy-analyzer read_energy action.
Fields§
§energy_j: Option<f64>Integrated energy (J).
charge_c: Option<f64>Integrated charge (C).
duration_s: Option<f64>Actual integration window (s).
extra: Map<String, Value>Any extra analyzer-specific fields.
Trait Implementations§
Source§impl Clone for EnergyReading
impl Clone for EnergyReading
Source§fn clone(&self) -> EnergyReading
fn clone(&self) -> EnergyReading
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 EnergyReading
impl Debug for EnergyReading
Source§impl<'de> Deserialize<'de> for EnergyReading
impl<'de> Deserialize<'de> for EnergyReading
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
Auto Trait Implementations§
impl Freeze for EnergyReading
impl RefUnwindSafe for EnergyReading
impl Send for EnergyReading
impl Sync for EnergyReading
impl Unpin for EnergyReading
impl UnsafeUnpin for EnergyReading
impl UnwindSafe for EnergyReading
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