pub struct Device {Show 18 fields
pub part_num: String,
pub installed: DateTime<Utc>,
pub serial_num: String,
pub device_status: Vec<DeviceStatus>,
pub last_rpt_date: DateTime<Utc>,
pub admin_state: AdminState,
pub dev_type: u8,
pub created_date: DateTime<Utc>,
pub img_load_date: DateTime<Utc>,
pub img_pnum_running: String,
pub ptpn: String,
pub chaneid: u64,
pub device_control: Vec<DeviceControl>,
pub producing: bool,
pub communicating: bool,
pub provisioned: bool,
pub operating: bool,
pub phase: String,
}Expand description
The state of a device in the inventory.
Fields§
§part_num: StringThe part number of the device.
installed: DateTime<Utc>When the device was installed.
serial_num: StringThe serial number of the device.
device_status: Vec<DeviceStatus>The device’s current statuses.
last_rpt_date: DateTime<Utc>When the device last reported to the gateway.
admin_state: AdminStateThe administrative state of the device.
dev_type: u8The type of device.
created_date: DateTime<Utc>When the device was added to the gateway.
img_load_date: DateTime<Utc>When the device’s firmware was loaded.
img_pnum_running: StringThe device’s firmware product number.
ptpn: String§chaneid: u64The channel Enphase ID.
device_control: Vec<DeviceControl>§producing: boolWhether the device is producing electricity.
communicating: boolWhether the device is communicating with the gateway.
provisioned: boolWhether the device is provisioned.
operating: boolWhether the device is operating.
phase: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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