Debian Codegraph @

src/options/config/temperature_graph.rs

raw symbols SCIP
1 use serde::Deserialize;
2
3 use super::IgnoreList;
4
5 /// Temperature graph configuration.
6 #[derive(Clone, Debug, Default, Deserialize)]
7 #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))]
8 #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEq))]
9 pub(crate) struct TempGraphConfig {
10 /// A filter over the sensor names.
11 pub(crate) sensor_filter: Option<IgnoreList>,
12
13 /// The location of the graph's legend.
14 #[serde(default)]
15 pub(crate) legend_position: Option<String>,
16
17 /// An upper temperature value for the graph; entries higher than this will be hidden. If not set,
18 /// there is no limit.
19 ///
20 /// Is in the configured temperature unit.
21 #[serde(default)]
22 pub(crate) max_temp: Option<f64>,
23 }