pub struct Hardware {
pub meta: Bo4eMeta,
pub device_number: Option<String>,
pub description: Option<String>,
pub device_category: Option<DeviceCategory>,
pub device_type: Option<DeviceType>,
}Expand description
Hardware component for representing physical devices.
This component represents hardware devices that are not meters, such as transformers, communication equipment, or other technical devices.
German: Hardware
§Example
use bo4e_core::com::Hardware;
let hw = Hardware {
device_number: Some("HW-2024-001".to_string()),
description: Some("Current transformer".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
device_number: Option<String>Device number assigned by the metering service operator (Gerätenummer)
description: Option<String>Description of the device (Bezeichnung)
device_category: Option<DeviceCategory>Category/class of the device (Geräteklasse)
device_type: Option<DeviceType>Specific type of the device (Gerätetyp)
Trait Implementations§
Source§impl Bo4eObject for Hardware
impl Bo4eObject for Hardware
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 Hardware
impl<'de> Deserialize<'de> for Hardware
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 Hardware
Auto Trait Implementations§
impl Freeze for Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnsafeUnpin for Hardware
impl UnwindSafe for Hardware
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