pub struct EnergyAmount {
pub meta: Bo4eMeta,
pub energy_amount_id: Option<String>,
pub division: Option<Division>,
pub energy_direction: Option<EnergyDirection>,
pub measurement_type: Option<MeasurementType>,
pub validity_period: Option<TimePeriod>,
pub measured_values: Vec<MeasuredValue>,
pub market_location_id: Option<String>,
pub metering_location_id: Option<String>,
pub obis_code: Option<String>,
pub total_energy: Option<f64>,
}Expand description
An amount of energy with time series data.
German: Energiemenge
Energy amounts represent measured or calculated energy quantities over time, typically associated with a market or metering location.
§Example
use bo4e_core::bo::EnergyAmount;
use bo4e_core::enums::{Division, EnergyDirection};
let energy = EnergyAmount {
energy_amount_id: Some("EA001".to_string()),
division: Some(Division::Electricity),
energy_direction: Some(EnergyDirection::FeedOut),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
energy_amount_id: Option<String>Energy amount ID (Energiemenge-ID)
division: Option<Division>Energy division (Sparte)
energy_direction: Option<EnergyDirection>Energy direction (Energierichtung)
measurement_type: Option<MeasurementType>Measurement type (Messart)
validity_period: Option<TimePeriod>Validity period (Gueltigkeitszeitraum)
measured_values: Vec<MeasuredValue>Time series data (Messwerte)
market_location_id: Option<String>Associated market location ID
metering_location_id: Option<String>Associated metering location ID
obis_code: Option<String>OBIS code for the measurement
total_energy: Option<f64>Total energy value (Gesamtenergie)
Trait Implementations§
Source§impl Bo4eObject for EnergyAmount
impl Bo4eObject for EnergyAmount
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 EnergyAmount
impl Clone for EnergyAmount
Source§fn clone(&self) -> EnergyAmount
fn clone(&self) -> EnergyAmount
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 EnergyAmount
impl Debug for EnergyAmount
Source§impl Default for EnergyAmount
impl Default for EnergyAmount
Source§fn default() -> EnergyAmount
fn default() -> EnergyAmount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnergyAmount
impl<'de> Deserialize<'de> for EnergyAmount
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 EnergyAmount
impl PartialEq for EnergyAmount
Source§impl Serialize for EnergyAmount
impl Serialize for EnergyAmount
impl StructuralPartialEq for EnergyAmount
Auto Trait Implementations§
impl Freeze for EnergyAmount
impl RefUnwindSafe for EnergyAmount
impl Send for EnergyAmount
impl Sync for EnergyAmount
impl Unpin for EnergyAmount
impl UnwindSafe for EnergyAmount
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