pub struct EnergyConsumptionData {
pub kw_h: Option<f64>,
pub effective_power: Option<u32>,
}Expand description
Hourly energy consumption data returned by the history_statistics endpoint.
Values may be None if the device has not reported data for the requested
time slot. crate::RointeClient::get_energy_stats walks back up to five
hours to find the most recent non-null record.
Fields§
§kw_h: Option<f64>Energy consumed during the hour in kilowatt-hours.
effective_power: Option<u32>Effective (actual) power draw during the hour in watts.
Trait Implementations§
Source§impl Clone for EnergyConsumptionData
impl Clone for EnergyConsumptionData
Source§fn clone(&self) -> EnergyConsumptionData
fn clone(&self) -> EnergyConsumptionData
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 EnergyConsumptionData
impl Debug for EnergyConsumptionData
Source§impl<'de> Deserialize<'de> for EnergyConsumptionData
impl<'de> Deserialize<'de> for EnergyConsumptionData
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 EnergyConsumptionData
impl RefUnwindSafe for EnergyConsumptionData
impl Send for EnergyConsumptionData
impl Sync for EnergyConsumptionData
impl Unpin for EnergyConsumptionData
impl UnsafeUnpin for EnergyConsumptionData
impl UnwindSafe for EnergyConsumptionData
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