Struct sep2_common::packages::edev::DeviceStatus
source · pub struct DeviceStatus {
pub changed_time: TimeType,
pub on_count: Option<Uint16>,
pub op_state: Option<OpState>,
pub op_time: Option<Uint32>,
pub temperature: Vec<Temperature>,
pub time_link: Option<TimeLink>,
pub poll_rate: Option<Uint32>,
pub href: Option<String>,
}
edev
only.Fields§
§changed_time: TimeType
The time at which the reported values were recorded.
on_count: Option<Uint16>
The number of times that the device has been turned on: Count of “device on” times, since the last time the counter was reset
op_state: Option<OpState>
Device operational state: 0 - Not applicable / Unknown 1 - Not operating 2 - Operating 3 - Starting up 4 - Shutting down 5 - At disconnect level 6 - kW ramping 7 - kVar ramping
op_time: Option<Uint32>
Total time device has operated: re-settable: Accumulated time in seconds since the last time the counter was reset.
temperature: Vec<Temperature>
§time_link: Option<TimeLink>
§poll_rate: Option<Uint32>
The default polling rate for this function set (this resource and all resources below), in seconds. If not specified, a default of 900 seconds (15 minutes) is used. It is RECOMMENDED a client poll the resources of this function set every pollRate seconds.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceStatus
impl Debug for DeviceStatus
source§impl Default for DeviceStatus
impl Default for DeviceStatus
source§fn default() -> DeviceStatus
fn default() -> DeviceStatus
source§impl PartialEq<DeviceStatus> for DeviceStatus
impl PartialEq<DeviceStatus> for DeviceStatus
source§fn eq(&self, other: &DeviceStatus) -> bool
fn eq(&self, other: &DeviceStatus) -> bool
self
and other
values to be equal, and is used
by ==
.