nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// specifies the axes configurations for a given x and y axis.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ScatterPlotValueAxes {
    #[builder(
        custom(
            type = super::super::super::chartdefinition::api::ValueAxis,
            convert = Box::new
        )
    )]
    #[serde(rename = "xAxis")]
    x_axis: Box<super::super::super::chartdefinition::api::ValueAxis>,
    #[builder(
        custom(
            type = super::super::super::chartdefinition::api::ValueAxis,
            convert = Box::new
        )
    )]
    #[serde(rename = "yAxis")]
    y_axis: Box<super::super::super::chartdefinition::api::ValueAxis>,
}
impl ScatterPlotValueAxes {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        x_axis: super::super::super::chartdefinition::api::ValueAxis,
        y_axis: super::super::super::chartdefinition::api::ValueAxis,
    ) -> Self {
        Self::builder().x_axis(x_axis).y_axis(y_axis).build()
    }
    #[inline]
    pub fn x_axis(&self) -> &super::super::super::chartdefinition::api::ValueAxis {
        &*self.x_axis
    }
    #[inline]
    pub fn y_axis(&self) -> &super::super::super::chartdefinition::api::ValueAxis {
        &*self.y_axis
    }
}