nominal_api/conjure/objects/scout/chartdefinition/api/
axis_threshold_visualization.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct AxisThresholdVisualization {
13 #[serde(rename = "axisId")]
14 axis_id: super::AxisId,
15 #[serde(rename = "visibility")]
16 visibility: bool,
17 #[builder(custom(type = super::AxisThresholdGroup, convert = Box::new))]
18 #[serde(rename = "thresholds")]
19 thresholds: Box<super::AxisThresholdGroup>,
20}
21impl AxisThresholdVisualization {
22 #[inline]
24 pub fn new(
25 axis_id: super::AxisId,
26 visibility: bool,
27 thresholds: super::AxisThresholdGroup,
28 ) -> Self {
29 Self::builder()
30 .axis_id(axis_id)
31 .visibility(visibility)
32 .thresholds(thresholds)
33 .build()
34 }
35 #[inline]
36 pub fn axis_id(&self) -> &super::AxisId {
37 &self.axis_id
38 }
39 #[inline]
41 pub fn visibility(&self) -> bool {
42 self.visibility
43 }
44 #[inline]
45 pub fn thresholds(&self) -> &super::AxisThresholdGroup {
46 &*self.thresholds
47 }
48}