lifx-mqtt-bridge/src/light.rs
2019-01-15 21:41:43 +01:00

19 lines
307 B
Rust

#[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,
}