nominal-api-conjure 0.1362.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// A layout for analyst backing workbooks. Panels render inline in the
/// conversation, so entries carry no positioning — only per-panel
/// settings, keyed by the panel's viz id in WorkbookContent.charts.
#[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 AnalystLayout {
    #[serde(rename = "id")]
    id: conjure_object::Uuid,
    #[builder(
        default,
        map(
            key(type = super::super::super::rids::api::VizId),
            value(type = super::AnalystPanel)
        )
    )]
    #[serde(
        rename = "panels",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    panels: std::collections::BTreeMap<
        super::super::super::rids::api::VizId,
        super::AnalystPanel,
    >,
}
impl AnalystLayout {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(id: conjure_object::Uuid) -> Self {
        Self::builder().id(id).build()
    }
    #[inline]
    pub fn id(&self) -> conjure_object::Uuid {
        self.id
    }
    #[inline]
    pub fn panels(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::rids::api::VizId,
        super::AnalystPanel,
    > {
        &self.panels
    }
}