Skip to main content

nominal_api/conjure/objects/scout/layout/api/
workbook_layout_v1.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct WorkbookLayoutV1 {
13    #[builder(custom(type = super::Panel, convert = Box::new))]
14    #[serde(rename = "rootPanel")]
15    root_panel: Box<super::Panel>,
16}
17impl WorkbookLayoutV1 {
18    /// Constructs a new instance of the type.
19    #[inline]
20    pub fn new(root_panel: super::Panel) -> Self {
21        Self::builder().root_panel(root_panel).build()
22    }
23    /// Only TabbedPanel supported.
24    #[inline]
25    pub fn root_panel(&self) -> &super::Panel {
26        &*self.root_panel
27    }
28}