pub struct AddStatusCommon {
pub date: Date,
pub time: Time,
pub energy_generation: Option<u32>,
pub power_generation: Option<i32>,
pub energy_consumption: Option<u32>,
pub power_consumption: Option<i32>,
pub temperature: Option<f32>,
pub voltage: Option<f32>,
}Expand description
Common parameters for the add_status,
add_batch_status, and
add_batch_status_net endpoints.
Fields§
§date: DateThe date for this status.
Must be within the past fourteen days, or the past ninety days for accounts with donation status.
time: TimeThe time for this status.
Times will be rounded to the nearest configured status interval.
energy_generation: Option<u32>Energy generation in watt-hours.
This field is required when using the batch status endpoint.
power_generation: Option<i32>Power generation in watts.
energy_consumption: Option<u32>Energy consumption in watt-hours.
Limited to 200,000 Wh for free accounts, or 999,999,999 Wh for accounts with donation status.
power_consumption: Option<i32>Power consumption in watts.
Limited to 100,000 W for free accounts, or 2,000,000 W for accounts with donation status.
temperature: Option<f32>Temperature in degrees Celsius.
voltage: Option<f32>Voltage in volts.
Implementations§
Source§impl AddStatusCommon
impl AddStatusCommon
Sourcepub const fn new(date: Date, time: Time) -> Self
pub const fn new(date: Date, time: Time) -> Self
Creates a new AddStatusCommon for the given date and time with all other fields set to None.
Trait Implementations§
Source§impl Clone for AddStatusCommon
impl Clone for AddStatusCommon
Source§fn clone(&self) -> AddStatusCommon
fn clone(&self) -> AddStatusCommon
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more