nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 ChartPanelV1 {
    #[serde(rename = "id")]
    id: super::PanelId,
    #[builder(
        custom(type = super::super::super::rids::api::VersionedVizId, convert = Box::new)
    )]
    #[serde(rename = "chartRid")]
    chart_rid: Box<super::super::super::rids::api::VersionedVizId>,
    #[serde(rename = "hideLegend")]
    hide_legend: bool,
}
impl ChartPanelV1 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        id: super::PanelId,
        chart_rid: super::super::super::rids::api::VersionedVizId,
        hide_legend: bool,
    ) -> Self {
        Self::builder().id(id).chart_rid(chart_rid).hide_legend(hide_legend).build()
    }
    #[inline]
    pub fn id(&self) -> &super::PanelId {
        &self.id
    }
    #[inline]
    pub fn chart_rid(&self) -> &super::super::super::rids::api::VersionedVizId {
        &*self.chart_rid
    }
    #[inline]
    pub fn hide_legend(&self) -> bool {
        self.hide_legend
    }
}