| 1 | use serde::{Deserialize, Serialize}; |
| 2 | |
| 3 | use super::ColourStr; |
| 4 | |
| 5 | /// Styling specific to the temperature graph widget. |
| 6 | #[derive(Clone, Debug, Default, Deserialize, Serialize)] |
| 7 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 8 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEq, Eq))] |
| 9 | pub(crate) struct TempGraphStyle { |
| 10 | /// Colour of each temperature sensor's graph line. Read in order. |
| 11 | #[serde(alias = "temp_graph_color_styles")] |
| 12 | pub(crate) temp_graph_colour_styles: Option<Vec<ColourStr>>, |
| 13 | } |