pub struct TimeOfUseRegister {
pub meta: Bo4eMeta,
pub register_id: Option<String>,
pub obis_code: Option<String>,
pub tariff_time: Option<TariffTime>,
pub unit: Option<Unit>,
pub description: Option<String>,
pub active_start_time: Option<String>,
pub active_end_time: Option<String>,
}Expand description
A time-of-use register on a meter for different tariff periods.
German: Zaehlzeitregister
§Example
use bo4e_core::com::TimeOfUseRegister;
use bo4e_core::enums::{TariffTime, Unit};
let register = TimeOfUseRegister {
register_id: Some("HT".to_string()),
tariff_time: Some(TariffTime::HighTariff),
unit: Some(Unit::KilowattHour),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
register_id: Option<String>Register ID (Zaehlwerkskennung)
obis_code: Option<String>OBIS code (OBIS-Kennzahl)
tariff_time: Option<TariffTime>Tariff time period (Tarifzeit)
unit: Option<Unit>Unit of measurement (Einheit)
description: Option<String>Description of the register (Bezeichnung)
active_start_time: Option<String>Active start time in HH:MM format (Aktivzeitbeginn)
active_end_time: Option<String>Active end time in HH:MM format (Aktivzeitende)
Trait Implementations§
Source§impl Bo4eObject for TimeOfUseRegister
impl Bo4eObject for TimeOfUseRegister
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 TimeOfUseRegister
impl Clone for TimeOfUseRegister
Source§fn clone(&self) -> TimeOfUseRegister
fn clone(&self) -> TimeOfUseRegister
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 TimeOfUseRegister
impl Debug for TimeOfUseRegister
Source§impl Default for TimeOfUseRegister
impl Default for TimeOfUseRegister
Source§fn default() -> TimeOfUseRegister
fn default() -> TimeOfUseRegister
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeOfUseRegister
impl<'de> Deserialize<'de> for TimeOfUseRegister
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 TimeOfUseRegister
impl PartialEq for TimeOfUseRegister
Source§impl Serialize for TimeOfUseRegister
impl Serialize for TimeOfUseRegister
impl StructuralPartialEq for TimeOfUseRegister
Auto Trait Implementations§
impl Freeze for TimeOfUseRegister
impl RefUnwindSafe for TimeOfUseRegister
impl Send for TimeOfUseRegister
impl Sync for TimeOfUseRegister
impl Unpin for TimeOfUseRegister
impl UnsafeUnpin for TimeOfUseRegister
impl UnwindSafe for TimeOfUseRegister
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