pub struct LoadCurveData {
pub meta: Bo4eMeta,
pub timestamp: Option<DateTime<Utc>>,
pub power_value: Option<f64>,
pub power_unit: Option<Unit>,
pub energy_value: Option<f64>,
pub energy_unit: Option<Unit>,
pub interval_minutes: Option<i32>,
pub obis_code: Option<String>,
pub measurement_location_id: Option<String>,
}Expand description
Load curve data containing power measurements over time.
German: Lastkurvendaten
§Example
use bo4e_core::com::LoadCurveData;
use bo4e_core::enums::Unit;
use chrono::Utc;
let data = LoadCurveData {
timestamp: Some(Utc::now()),
power_value: Some(125.5),
power_unit: Some(Unit::Kilowatt),
interval_minutes: Some(15),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
timestamp: Option<DateTime<Utc>>Timestamp of the measurement (Zeitpunkt)
power_value: Option<f64>Power value (Leistungswert)
power_unit: Option<Unit>Unit of power measurement (Leistungseinheit)
energy_value: Option<f64>Energy value for the interval (Energiewert)
energy_unit: Option<Unit>Unit of energy measurement (Energieeinheit)
interval_minutes: Option<i32>Interval duration in minutes (Intervalllaenge)
obis_code: Option<String>OBIS code (OBIS-Kennzahl)
measurement_location_id: Option<String>Measurement location ID (Messlokations-ID)
Trait Implementations§
Source§impl Bo4eObject for LoadCurveData
impl Bo4eObject for LoadCurveData
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for LoadCurveData
impl Clone for LoadCurveData
Source§fn clone(&self) -> LoadCurveData
fn clone(&self) -> LoadCurveData
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 LoadCurveData
impl Debug for LoadCurveData
Source§impl Default for LoadCurveData
impl Default for LoadCurveData
Source§fn default() -> LoadCurveData
fn default() -> LoadCurveData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoadCurveData
impl<'de> Deserialize<'de> for LoadCurveData
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
Source§impl PartialEq for LoadCurveData
impl PartialEq for LoadCurveData
Source§impl Serialize for LoadCurveData
impl Serialize for LoadCurveData
impl StructuralPartialEq for LoadCurveData
Auto Trait Implementations§
impl Freeze for LoadCurveData
impl RefUnwindSafe for LoadCurveData
impl Send for LoadCurveData
impl Sync for LoadCurveData
impl Unpin for LoadCurveData
impl UnsafeUnpin for LoadCurveData
impl UnwindSafe for LoadCurveData
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