19 lines
307 B
Rust
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,
|
|
}
|
|
|