pub struct LoadProfileValue {
pub meta: Bo4eMeta,
pub timestamp: Option<DateTime<Utc>>,
pub value: Option<f64>,
pub unit: Option<Unit>,
pub status: Option<MeasuredValueStatus>,
pub obis_code: Option<String>,
pub interval_minutes: Option<i32>,
}Expand description
A single value in a load profile (time series of power measurements).
German: Lastgangwert
§Example
use bo4e_core::com::LoadProfileValue;
use bo4e_core::enums::Unit;
use chrono::Utc;
let value = LoadProfileValue {
timestamp: Some(Utc::now()),
value: Some(125.5),
unit: Some(Unit::Kilowatt),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
timestamp: Option<DateTime<Utc>>Timestamp of the measurement (Zeitpunkt)
value: Option<f64>Power/load value (Wert)
unit: Option<Unit>Unit of measurement (Einheit)
status: Option<MeasuredValueStatus>Status/quality of the value (Status)
obis_code: Option<String>OBIS code (OBIS-Kennzahl)
interval_minutes: Option<i32>Interval duration in minutes (Intervalllaenge)
Trait Implementations§
Source§impl Bo4eObject for LoadProfileValue
impl Bo4eObject for LoadProfileValue
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 LoadProfileValue
impl Clone for LoadProfileValue
Source§fn clone(&self) -> LoadProfileValue
fn clone(&self) -> LoadProfileValue
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 LoadProfileValue
impl Debug for LoadProfileValue
Source§impl Default for LoadProfileValue
impl Default for LoadProfileValue
Source§fn default() -> LoadProfileValue
fn default() -> LoadProfileValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoadProfileValue
impl<'de> Deserialize<'de> for LoadProfileValue
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 LoadProfileValue
impl PartialEq for LoadProfileValue
Source§impl Serialize for LoadProfileValue
impl Serialize for LoadProfileValue
impl StructuralPartialEq for LoadProfileValue
Auto Trait Implementations§
impl Freeze for LoadProfileValue
impl RefUnwindSafe for LoadProfileValue
impl Send for LoadProfileValue
impl Sync for LoadProfileValue
impl Unpin for LoadProfileValue
impl UnwindSafe for LoadProfileValue
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