pub struct ClockConfig {
pub logical_name: ObisCode,
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
Configuration used to build a Clock object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
time: DateTimeAttribute 2: the current date and time (date-time, 12 octets).
time_zone: i16Attribute 3: deviation of local time from GMT, in minutes (long).
status: u8Attribute 4: clock status flags (unsigned bit-string).
daylight_savings_begin: DateTimeAttribute 5: date and time at which daylight saving begins (date-time).
daylight_savings_end: DateTimeAttribute 6: date and time at which daylight saving ends (date-time).
daylight_savings_deviation: i8Attribute 7: daylight-saving offset added to time, in minutes (integer).
daylight_savings_enabled: boolAttribute 8: whether daylight saving is applied (boolean).
clock_base: u8Attribute 9: the underlying clock base / source (enum).
Trait Implementations§
Source§impl Clone for ClockConfig
impl Clone for ClockConfig
Source§fn clone(&self) -> ClockConfig
fn clone(&self) -> ClockConfig
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 ClockConfig
impl Debug for ClockConfig
Source§impl<'de> Deserialize<'de> for ClockConfig
impl<'de> Deserialize<'de> for ClockConfig
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 ClockConfig
impl RefUnwindSafe for ClockConfig
impl Send for ClockConfig
impl Sync for ClockConfig
impl Unpin for ClockConfig
impl UnsafeUnpin for ClockConfig
impl UnwindSafe for ClockConfig
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