pub struct LightComponent {
pub kind: LightKind,
pub id: u8,
}Expand description
A detected light component: its kind and instance id.
Fields§
§kind: LightKind§id: u8Implementations§
Source§impl LightComponent
impl LightComponent
Sourcepub fn from_status(status: &Value) -> Vec<LightComponent>
pub fn from_status(status: &Value) -> Vec<LightComponent>
Detect light components from a Shelly.GetStatus response by scanning
keys of the form “
Trait Implementations§
Source§impl Clone for LightComponent
impl Clone for LightComponent
Source§fn clone(&self) -> LightComponent
fn clone(&self) -> LightComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LightComponent
Source§impl Debug for LightComponent
impl Debug for LightComponent
impl Eq for LightComponent
Source§impl PartialEq for LightComponent
impl PartialEq for LightComponent
impl StructuralPartialEq for LightComponent
Auto Trait Implementations§
impl Freeze for LightComponent
impl RefUnwindSafe for LightComponent
impl Send for LightComponent
impl Sync for LightComponent
impl Unpin for LightComponent
impl UnsafeUnpin for LightComponent
impl UnwindSafe for LightComponent
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