pub struct MeteringLocation {
pub meta: Bo4eMeta,
pub metering_location_id: Option<String>,
pub division: Option<Division>,
pub address: Option<Address>,
pub coordinates: Option<GeoCoordinates>,
pub metering_operator_code: Option<String>,
pub network_operator_code: Option<String>,
pub grid_area: Option<String>,
pub description: Option<String>,
pub hardware: Vec<Hardware>,
pub meter_ids: Vec<String>,
pub market_location_ids: Vec<String>,
}Expand description
A metering location (MeLo) - where measurement takes place.
German: Messlokation
A metering location represents the physical point where energy is measured. It has a 33-character identifier.
§Example
use bo4e_core::bo::MeteringLocation;
use bo4e_core::enums::Division;
let melo = MeteringLocation {
metering_location_id: Some("DE00012345678901234567890123456789".to_string()),
division: Some(Division::Electricity),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
metering_location_id: Option<String>Metering location ID - 33 characters (Messlokations-ID)
division: Option<Division>Energy division (Sparte)
address: Option<Address>Location address (Adresse)
coordinates: Option<GeoCoordinates>Geographic coordinates (Geokoordinaten)
metering_operator_code: Option<String>Metering point operator code (Messstellenbetreiber-Codenummer)
network_operator_code: Option<String>Network operator code (Netzbetreiber-Codenummer)
grid_area: Option<String>Grid area (Regelzone)
description: Option<String>Description of the metering location (Beschreibung)
hardware: Vec<Hardware>Hardware at this metering location (Geraete)
meter_ids: Vec<String>Associated meter IDs (Zaehler)
market_location_ids: Vec<String>Associated market location IDs (Marktlokationen)
Trait Implementations§
Source§impl Bo4eObject for MeteringLocation
impl Bo4eObject for MeteringLocation
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 MeteringLocation
impl Clone for MeteringLocation
Source§fn clone(&self) -> MeteringLocation
fn clone(&self) -> MeteringLocation
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 MeteringLocation
impl Debug for MeteringLocation
Source§impl Default for MeteringLocation
impl Default for MeteringLocation
Source§fn default() -> MeteringLocation
fn default() -> MeteringLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MeteringLocation
impl<'de> Deserialize<'de> for MeteringLocation
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 MeteringLocation
impl PartialEq for MeteringLocation
Source§impl Serialize for MeteringLocation
impl Serialize for MeteringLocation
impl StructuralPartialEq for MeteringLocation
Auto Trait Implementations§
impl Freeze for MeteringLocation
impl RefUnwindSafe for MeteringLocation
impl Send for MeteringLocation
impl Sync for MeteringLocation
impl Unpin for MeteringLocation
impl UnwindSafe for MeteringLocation
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