#[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 {
#[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
}
}