pub struct Smartlife {
pub dimmer: Option<SectionError>,
pub emeter: Option<SectionResult<SmartlifeEmeter>>,
pub lightingservice: Option<SectionResult<SmartlifeLightingService>>,
}
Fields§
§dimmer: Option<SectionError>
§emeter: Option<SectionResult<SmartlifeEmeter>>
§lightingservice: Option<SectionResult<SmartlifeLightingService>>
Implementations§
Source§impl Smartlife
impl Smartlife
pub fn emeter(&self) -> Result<&SmartlifeEmeter>
pub fn lightingservice(&self) -> Result<&SmartlifeLightingService>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Smartlife
impl<'de> Deserialize<'de> for Smartlife
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 Smartlife
impl RefUnwindSafe for Smartlife
impl Send for Smartlife
impl Sync for Smartlife
impl Unpin for Smartlife
impl UnwindSafe for Smartlife
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