pub struct WattReading {
pub current: Option<f64>,
pub voltage: Option<f64>,
pub power: Option<f64>,
pub duration_s: Option<f64>,
}Expand description
Combined current/voltage/power reading from a watt-meter all action.
Fields§
§current: Option<f64>Mean current over the window (A).
voltage: Option<f64>Mean voltage over the window (V).
power: Option<f64>Mean power over the window (W).
duration_s: Option<f64>Measurement window (s).
Trait Implementations§
Source§impl Clone for WattReading
impl Clone for WattReading
Source§fn clone(&self) -> WattReading
fn clone(&self) -> WattReading
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 WattReading
impl Debug for WattReading
Source§impl<'de> Deserialize<'de> for WattReading
impl<'de> Deserialize<'de> for WattReading
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 WattReading
impl RefUnwindSafe for WattReading
impl Send for WattReading
impl Sync for WattReading
impl Unpin for WattReading
impl UnsafeUnpin for WattReading
impl UnwindSafe for WattReading
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