Debian Codegraph @

src/options/config/style/graphs.rs

raw symbols SCIP
1 use serde::{Deserialize, Serialize};
2
3 use super::{ColourStr, TextStyleConfig};
4
5 /// General styling for graph widgets.
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 GraphStyle {
10 /// The general colour of the parts of the graph.
11 #[serde(alias = "graph_color")]
12 pub(crate) graph_colour: Option<ColourStr>,
13
14 /// Text styling for graph's legend text.
15 pub(crate) legend_text: Option<TextStyleConfig>,
16 }