/// Fits a curve to the scatter between two series.
#[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 ScatterCurveFit {
    #[builder(custom(type = super::Scatter, convert = Box::new))]
    #[serde(rename = "scatter")]
    scatter: Box<super::Scatter>,
    #[builder(custom(type = super::ScatterFitOptions, convert = Box::new))]
    #[serde(rename = "options")]
    options: Box<super::ScatterFitOptions>,
}
impl ScatterCurveFit {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(scatter: super::Scatter, options: super::ScatterFitOptions) -> Self {
        Self::builder().scatter(scatter).options(options).build()
    }
    /// The x and y series to fit to.
    #[inline]
    pub fn scatter(&self) -> &super::Scatter {
        &*self.scatter
    }
    #[inline]
    pub fn options(&self) -> &super::ScatterFitOptions {
        &*self.options
    }
}
