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