pub struct ClockAttrs {
pub logical_name: LogicalName,
pub time: DateTime,
pub time_zone: i16,
pub status: u8,
pub daylight_savings_begin: DateTime,
pub daylight_savings_end: DateTime,
pub daylight_savings_deviation: i8,
pub daylight_savings_enabled: bool,
pub clock_base: u8,
}Expand description
Clock class (class_id = 8) attributes.
- attr 1: logical_name (octet-string)
- attr 2: time (date-time)
- attr 3: time_zone (long)
- attr 4: status (bit-string)
- attr 5: daylight_savings_begin (date-time)
- attr 6: daylight_savings_end (date-time)
- attr 7: daylight_savings_deviation (integer)
- attr 8: daylight_savings_enabled (boolean)
- attr 9: clock_base (enum)
Fields§
§logical_name: LogicalNameOBIS logical name (attribute 1).
time: DateTimeCurrent date and time (attribute 2).
time_zone: i16Time zone deviation from UTC in minutes (attribute 3).
status: u8Clock status bit-string (attribute 4).
daylight_savings_begin: DateTimeDaylight savings begin time (attribute 5).
daylight_savings_end: DateTimeDaylight savings end time (attribute 6).
daylight_savings_deviation: i8Daylight savings deviation in minutes (attribute 7).
daylight_savings_enabled: boolDaylight savings enabled flag (attribute 8).
clock_base: u8Clock base source (attribute 9).
Trait Implementations§
Source§impl Clone for ClockAttrs
impl Clone for ClockAttrs
Source§fn clone(&self) -> ClockAttrs
fn clone(&self) -> ClockAttrs
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 ClockAttrs
impl Debug for ClockAttrs
Source§impl<'de> Deserialize<'de> for ClockAttrs
impl<'de> Deserialize<'de> for ClockAttrs
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 ClockAttrs
impl RefUnwindSafe for ClockAttrs
impl Send for ClockAttrs
impl Sync for ClockAttrs
impl Unpin for ClockAttrs
impl UnsafeUnpin for ClockAttrs
impl UnwindSafe for ClockAttrs
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