nominal_api/conjure/objects/scout/chartdefinition/api/
histogram_display_settings.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct HistogramDisplaySettings {
16 #[serde(rename = "stacked")]
17 stacked: bool,
18 #[serde(rename = "sort")]
19 sort: super::HistogramSortOrder,
20}
21impl HistogramDisplaySettings {
22 #[inline]
24 pub fn new(stacked: bool, sort: super::HistogramSortOrder) -> Self {
25 Self::builder().stacked(stacked).sort(sort).build()
26 }
27 #[inline]
28 pub fn stacked(&self) -> bool {
29 self.stacked
30 }
31 #[inline]
32 pub fn sort(&self) -> &super::HistogramSortOrder {
33 &self.sort
34 }
35}