lifx-mqtt-bridge/src/light.rs

19 lines
307 B
Rust
Raw Normal View History

2019-01-15 20:41:43 +00:00
#[derive(Deserialize, Debug)]
pub struct Color {
pub hue: f32,
pub saturation: f32,
pub kelvin: f32,
}
#[derive(Deserialize, Debug)]
pub struct Light {
pub id: String,
pub label: String,
pub connected: bool,
pub power: String,
pub color: Color,
pub brightness: f32,
}