Struct lifx_core::ProductInfo
source · pub struct ProductInfo {
pub name: &'static str,
pub color: bool,
pub infrared: bool,
pub multizone: bool,
pub chain: bool,
pub hev: bool,
pub matrix: bool,
pub relays: bool,
pub buttons: bool,
pub temperature_range: TemperatureRange,
}
Fields§
§name: &'static str
§color: bool
The light changes physical appearance when the Hue value is changed
infrared: bool
The light supports emitting infrared light
multizone: bool
The light supports a 1D linear array of LEDs (the Z and Beam)
chain: bool
The light may be connected to physically separated hardware (currently only the LIFX Tile)
hev: bool
The light supports emitted HEV light
matrix: bool
The light supports a 2D matrix of LEDs (the Tile and Candle)
relays: bool
The device has relays for controlling physical power to something (the LIFX switch)
The device has physical buttons to press (the LIFX switch)
temperature_range: TemperatureRange
The temperature range this device supports
Trait Implementations§
source§impl Clone for ProductInfo
impl Clone for ProductInfo
source§fn clone(&self) -> ProductInfo
fn clone(&self) -> ProductInfo
Returns a copy 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 ProductInfo
impl Debug for ProductInfo
source§impl PartialEq<ProductInfo> for ProductInfo
impl PartialEq<ProductInfo> for ProductInfo
source§fn eq(&self, other: &ProductInfo) -> bool
fn eq(&self, other: &ProductInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.