pub struct DeviceInfoLightResult {Show 27 fields
pub device_id: String,
pub type: String,
pub model: String,
pub hw_id: String,
pub hw_ver: String,
pub fw_id: String,
pub fw_ver: String,
pub oem_id: String,
pub mac: String,
pub ip: String,
pub ssid: String,
pub signal_level: u8,
pub rssi: i16,
pub specs: String,
pub lang: String,
pub device_on: bool,
pub on_time: Option<u64>,
pub nickname: String,
pub avatar: String,
pub has_set_location_info: bool,
pub region: Option<String>,
pub latitude: Option<i64>,
pub longitude: Option<i64>,
pub time_diff: Option<i64>,
pub brightness: u8,
pub default_states: DefaultLightState,
pub overheated: bool,
}Expand description
Device info of Tapo L510, L520 and L610. Superset of crate::responses::DeviceInfoGenericResult.
Fields§
§device_id: String§type: String§model: String§hw_id: String§hw_ver: String§fw_id: String§fw_ver: String§oem_id: String§mac: String§ip: String§ssid: String§signal_level: u8§rssi: i16§specs: String§lang: String§device_on: bool§on_time: Option<u64>The time in seconds this device has been ON since the last state change (On/Off). On v2 hardware this is always None.
nickname: String§avatar: String§has_set_location_info: bool§region: Option<String>§latitude: Option<i64>§longitude: Option<i64>§time_diff: Option<i64>§brightness: u8§default_states: DefaultLightStateThe default state of a device to be used when internet connectivity is lost after a power cut.
overheated: boolTrait Implementations§
Source§impl Clone for DeviceInfoLightResult
impl Clone for DeviceInfoLightResult
Source§fn clone(&self) -> DeviceInfoLightResult
fn clone(&self) -> DeviceInfoLightResult
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 DeviceInfoLightResult
impl Debug for DeviceInfoLightResult
Source§impl<'de> Deserialize<'de> for DeviceInfoLightResult
impl<'de> Deserialize<'de> for DeviceInfoLightResult
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 DeviceInfoLightResult
impl RefUnwindSafe for DeviceInfoLightResult
impl Send for DeviceInfoLightResult
impl Sync for DeviceInfoLightResult
impl Unpin for DeviceInfoLightResult
impl UnwindSafe for DeviceInfoLightResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more