#[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 CurveFitSeriesVariable {
    #[builder(custom(type = super::NumericSeriesNode, convert = Box::new))]
    #[serde(rename = "series")]
    series: Box<super::NumericSeriesNode>,
    #[builder(custom(type = super::CurveFitBoundsConfiguration, convert = Box::new))]
    #[serde(rename = "boundsConfig")]
    bounds_config: Box<super::CurveFitBoundsConfiguration>,
}
impl CurveFitSeriesVariable {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        series: super::NumericSeriesNode,
        bounds_config: super::CurveFitBoundsConfiguration,
    ) -> Self {
        Self::builder().series(series).bounds_config(bounds_config).build()
    }
    #[inline]
    pub fn series(&self) -> &super::NumericSeriesNode {
        &*self.series
    }
    #[inline]
    pub fn bounds_config(&self) -> &super::CurveFitBoundsConfiguration {
        &*self.bounds_config
    }
}
