Debian Codegraph @

src/options/config/style/disk_io_graph.rs

raw symbols SCIP
1 use serde::{Deserialize, Serialize};
2
3 use super::ColourStr;
4
5 /// Styling specific to the disk I/O 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 DiskIoGraphStyle {
10 /// Colour of each disk's read rate graph line. Read in order.
11 #[serde(alias = "read_colours")]
12 pub(crate) read_colours: Option<Vec<ColourStr>>,
13
14 /// Colour of each disk's write rate graph line. Read in order.
15 #[serde(alias = "write_colours")]
16 pub(crate) write_colours: Option<Vec<ColourStr>>,
17 }