pub struct Statistics {Show 14 fields
pub energy_generated: u64,
pub energy_exported: u64,
pub average_energy_generation: u32,
pub minimum_energy_generation: u32,
pub maximum_energy_generation: u32,
pub average_efficiency: f32,
pub outputs: u32,
pub date_from: Date,
pub date_to: Date,
pub record_efficiency: f32,
pub record_date: Date,
pub consumption: Option<ConsumptionStatistics>,
pub credit: Option<f32>,
pub debit: Option<f32>,
}Expand description
System statistics.
Returned by the get_statistics endpoint.
Fields§
§energy_generated: u64Energy generated in watt-hours.
energy_exported: u64Energy exported in watt-hours.
average_energy_generation: u32Average energy generation in watt-hours.
minimum_energy_generation: u32Minimum energy generation in watt-hours.
maximum_energy_generation: u32Maximum energy generation in watt-hours.
average_efficiency: f32Average efficiency in kilowatt-hours per kilowatt-hour.
outputs: u32Number of outputs recorded.
date_from: DateDate from which these data were measured.
date_to: DateDate to which these data were measured.
record_efficiency: f32The best daily energy efficiency in kilowatt-hours per kilowatt-hour.
record_date: DateThe date of the best daily energy efficiency.
consumption: Option<ConsumptionStatistics>Energy consumption data.
credit: Option<f32>Credit amount.
debit: Option<f32>Debit amount.
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 Statistics
impl Debug for Statistics
Source§impl<'de> Deserialize<'de> for Statistics
impl<'de> Deserialize<'de> for Statistics
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 Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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