#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ChartWithOverlays {
    #[serde(rename = "rid")]
    rid: super::super::super::rids::api::VizId,
    #[serde(rename = "version")]
    version: super::super::super::rids::api::Version,
    #[builder(
        custom(
            type = impl
            conjure_object::serde::Serialize,
            convert = |v|conjure_object::Any::new(v).expect("value failed to serialize")
        )
    )]
    #[serde(rename = "overlays")]
    overlays: conjure_object::Any,
}
impl ChartWithOverlays {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        rid: super::super::super::rids::api::VizId,
        version: super::super::super::rids::api::Version,
        overlays: impl conjure_object::serde::Serialize,
    ) -> Self {
        Self::builder().rid(rid).version(version).overlays(overlays).build()
    }
    #[inline]
    pub fn rid(&self) -> &super::super::super::rids::api::VizId {
        &self.rid
    }
    #[inline]
    pub fn version(&self) -> super::super::super::rids::api::Version {
        self.version
    }
    #[inline]
    pub fn overlays(&self) -> &conjure_object::Any {
        &self.overlays
    }
}
