pub struct Device {Show 13 fields
pub meta: Bo4eMeta,
pub device_id: Option<String>,
pub serial_number: Option<String>,
pub device_category: Option<DeviceCategory>,
pub device_type: Option<DeviceType>,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub manufacturing_year: Option<i32>,
pub installation_date: Option<DateTime<Utc>>,
pub removal_date: Option<DateTime<Utc>>,
pub firmware_version: Option<String>,
pub description: Option<String>,
pub metering_location_id: Option<String>,
}Expand description
A technical device used in the energy infrastructure.
German: Geraet
Devices are technical equipment like transformers, switches, or other equipment in the energy network.
§Example
use bo4e_core::bo::Device;
use bo4e_core::enums::DeviceCategory;
let device = Device {
device_id: Some("DEV001".to_string()),
device_category: Some(DeviceCategory::MeteringDevice),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
device_id: Option<String>Device identification (Geraetkennung)
serial_number: Option<String>Serial number (Seriennummer)
device_category: Option<DeviceCategory>Device category (Geraeteklasse)
device_type: Option<DeviceType>Device type (Geraetetyp)
manufacturer: Option<String>Manufacturer (Hersteller)
model: Option<String>Model name (Modellbezeichnung)
manufacturing_year: Option<i32>Manufacturing year (Baujahr)
installation_date: Option<DateTime<Utc>>Installation date (Einbaudatum)
removal_date: Option<DateTime<Utc>>Removal date (Ausbaudatum)
firmware_version: Option<String>Firmware version (Firmware-Version)
description: Option<String>Description (Beschreibung)
metering_location_id: Option<String>Associated metering location ID
Trait Implementations§
Source§impl Bo4eObject for Device
impl Bo4eObject for Device
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<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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