Debian Codegraph @

src/options/config/style/network.rs

raw symbols SCIP
1 use serde::{Deserialize, Serialize};
2
3 use super::ColourStr;
4
5 /// Styling specific to the network 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 NetworkStyle {
10 /// The colour of the RX (download) label and graph line.
11 #[serde(alias = "rx_color")]
12 pub(crate) rx_colour: Option<ColourStr>,
13
14 /// The colour of the TX (upload) label and graph line.
15 #[serde(alias = "tx_color")]
16 pub(crate) tx_colour: Option<ColourStr>,
17
18 /// The colour of the total RX (download) label in basic mode.
19 #[serde(alias = "rx_total_color")]
20 pub(crate) rx_total_colour: Option<ColourStr>,
21
22 /// The colour of the total TX (upload) label in basic mode.
23 #[serde(alias = "tx_total_color")]
24 pub(crate) tx_total_colour: Option<ColourStr>,
25 }