pub struct RointeDevice {
pub data: DeviceData,
pub serialnumber: Option<String>,
pub firmware: Option<FirmwareInfo>,
}Expand description
Full device object as returned by /devices/{id}.json.
Fields§
§data: DeviceDataAll mutable device state (temperatures, mode, schedule, etc.).
serialnumber: Option<String>Device serial number.
firmware: Option<FirmwareInfo>Firmware information reported by the device.
Trait Implementations§
Source§impl Clone for RointeDevice
impl Clone for RointeDevice
Source§fn clone(&self) -> RointeDevice
fn clone(&self) -> RointeDevice
Returns a duplicate of the value. Read more
1.0.0 · 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 RointeDevice
impl Debug for RointeDevice
Source§impl<'de> Deserialize<'de> for RointeDevice
impl<'de> Deserialize<'de> for RointeDevice
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 RointeDevice
impl RefUnwindSafe for RointeDevice
impl Send for RointeDevice
impl Sync for RointeDevice
impl Unpin for RointeDevice
impl UnsafeUnpin for RointeDevice
impl UnwindSafe for RointeDevice
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