pub struct AggregatedValue {
pub meta: Bo4eMeta,
pub timestamp: Option<DateTime<Utc>>,
pub value: Option<f64>,
pub unit: Option<Unit>,
pub aggregation_method: Option<String>,
pub period_start: Option<DateTime<Utc>>,
pub period_end: Option<DateTime<Utc>>,
pub source_count: Option<i32>,
pub obis_code: Option<String>,
}Expand description
An aggregated value computed from multiple source values.
German: Aggregiertwert
§Example
use bo4e_core::com::AggregatedValue;
use bo4e_core::enums::Unit;
use chrono::Utc;
let value = AggregatedValue {
timestamp: Some(Utc::now()),
value: Some(15000.0),
unit: Some(Unit::KilowattHour),
aggregation_method: Some("SUM".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
timestamp: Option<DateTime<Utc>>Timestamp for the aggregated value (Zeitpunkt)
value: Option<f64>The aggregated value (Wert)
unit: Option<Unit>Unit of the value (Einheit)
aggregation_method: Option<String>Aggregation method (Aggregationsmethode)
period_start: Option<DateTime<Utc>>Period start for aggregation (Periodenbeginn)
period_end: Option<DateTime<Utc>>Period end for aggregation (Periodenende)
source_count: Option<i32>Number of source values aggregated (Anzahl Quellwerte)
obis_code: Option<String>OBIS code (OBIS-Kennzahl)
Trait Implementations§
Source§impl Bo4eObject for AggregatedValue
impl Bo4eObject for AggregatedValue
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 AggregatedValue
impl Clone for AggregatedValue
Source§fn clone(&self) -> AggregatedValue
fn clone(&self) -> AggregatedValue
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 AggregatedValue
impl Debug for AggregatedValue
Source§impl Default for AggregatedValue
impl Default for AggregatedValue
Source§fn default() -> AggregatedValue
fn default() -> AggregatedValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AggregatedValue
impl<'de> Deserialize<'de> for AggregatedValue
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 AggregatedValue
impl PartialEq for AggregatedValue
Source§impl Serialize for AggregatedValue
impl Serialize for AggregatedValue
impl StructuralPartialEq for AggregatedValue
Auto Trait Implementations§
impl Freeze for AggregatedValue
impl RefUnwindSafe for AggregatedValue
impl Send for AggregatedValue
impl Sync for AggregatedValue
impl Unpin for AggregatedValue
impl UnwindSafe for AggregatedValue
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