#[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 AxisDisplayOptions {
    #[serde(rename = "showTitle")]
    show_title: bool,
    #[builder(default, into)]
    #[serde(rename = "axisWidth", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    axis_width: Option<f64>,
    #[builder(default, into)]
    #[serde(rename = "scaleType", skip_serializing_if = "Option::is_none", default)]
    scale_type: Option<super::AxisScaleType>,
}
impl AxisDisplayOptions {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(show_title: bool) -> Self {
        Self::builder().show_title(show_title).build()
    }
    #[inline]
    pub fn show_title(&self) -> bool {
        self.show_title
    }
    #[inline]
    pub fn axis_width(&self) -> Option<f64> {
        self.axis_width.as_ref().map(|o| *o)
    }
    /// The scale type of the axis. If not specified, the default is LINEAR.
    #[inline]
    pub fn scale_type(&self) -> Option<&super::AxisScaleType> {
        self.scale_type.as_ref().map(|o| &*o)
    }
}
