awtrix3 0.0.2

Awtrix3 types and API (mqtt/http), from https://blueforcer.github.io/awtrix3/#/api
Documentation
use std::fmt::Display;

use serde::{Deserialize, Serialize};

use super::Color;

#[derive(Debug)]
pub enum IndicatorId {
    Indicator1,
    Indicator2,
    Indicator3,
}

impl Display for IndicatorId {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            IndicatorId::Indicator1 => write!(f, "1"),
            IndicatorId::Indicator2 => write!(f, "2"),
            IndicatorId::Indicator3 => write!(f, "3"),
        }
    }
}

#[derive(Debug, Serialize, Deserialize)]
pub struct Indicator {
    pub color: Color,
    pub blink: Option<u32>,
    pub fade: Option<u32>,
}