Skip to main content

nominal_api/conjure/objects/scout/comparisonnotebook/api/
comparison_scatter_plot_variable.rs

1#[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 ComparisonScatterPlotVariable {
16    #[serde(rename = "xAxisId")]
17    x_axis_id: super::super::super::chartdefinition::api::AxisId,
18    #[serde(rename = "yAxisId")]
19    y_axis_id: super::super::super::chartdefinition::api::AxisId,
20    #[builder(custom(type = super::VariableLocator, convert = Box::new))]
21    #[serde(rename = "locator")]
22    locator: Box<super::VariableLocator>,
23    #[builder(custom(type = super::AggregationType, convert = Box::new))]
24    #[serde(rename = "aggregationType")]
25    aggregation_type: Box<super::AggregationType>,
26}
27impl ComparisonScatterPlotVariable {
28    /// the axisId when the variable is used as the x variable.
29    #[inline]
30    pub fn x_axis_id(&self) -> &super::super::super::chartdefinition::api::AxisId {
31        &self.x_axis_id
32    }
33    /// the axisId when the variable is used as the y variable.
34    #[inline]
35    pub fn y_axis_id(&self) -> &super::super::super::chartdefinition::api::AxisId {
36        &self.y_axis_id
37    }
38    #[inline]
39    pub fn locator(&self) -> &super::VariableLocator {
40        &*self.locator
41    }
42    #[inline]
43    pub fn aggregation_type(&self) -> &super::AggregationType {
44        &*self.aggregation_type
45    }
46}