pub struct DemandRegisterConfig {
pub logical_name: ObisCode,
pub current_average_value: Choice,
pub last_average_value: Choice,
pub scaler_unit: ScalerUnit,
pub status: Choice,
pub capture_time: DateTime,
pub start_time_current: DateTime,
pub period: u32,
pub number_of_periods: u16,
}Expand description
Configuration used to build a DemandRegister object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
current_average_value: ChoiceAttribute 2: the demand value being accumulated in the current period.
last_average_value: ChoiceAttribute 3: the demand value computed for the last completed period.
scaler_unit: ScalerUnitAttribute 4: scaler_unit structure { scaler, unit } for both values.
status: ChoiceAttribute 5: status of the register at capture time.
capture_time: DateTimeAttribute 6: the time last_average_value was captured (date-time).
start_time_current: DateTimeAttribute 7: start time of the current demand period (date-time).
period: u32Attribute 8: the demand-integration period, in seconds (double-long-unsigned).
number_of_periods: u16Attribute 9: number of periods used for the sliding-demand computation.
Trait Implementations§
Source§impl Clone for DemandRegisterConfig
impl Clone for DemandRegisterConfig
Source§fn clone(&self) -> DemandRegisterConfig
fn clone(&self) -> DemandRegisterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DemandRegisterConfig
impl Debug for DemandRegisterConfig
Source§impl<'de> Deserialize<'de> for DemandRegisterConfig
impl<'de> Deserialize<'de> for DemandRegisterConfig
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
Auto Trait Implementations§
impl Freeze for DemandRegisterConfig
impl RefUnwindSafe for DemandRegisterConfig
impl Send for DemandRegisterConfig
impl Sync for DemandRegisterConfig
impl Unpin for DemandRegisterConfig
impl UnsafeUnpin for DemandRegisterConfig
impl UnwindSafe for DemandRegisterConfig
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