nominal_api/conjure/objects/scout/comparisonnotebook/api/
comparison_workbook_content.rs1#[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 ComparisonWorkbookContent {
13 #[builder(default)]
14 #[serde(
15 rename = "channelVariables",
16 skip_serializing_if = "std::collections::BTreeMap::is_empty",
17 default
18 )]
19 channel_variables: super::ComparisonChannelVariableMap,
20 #[builder(default)]
21 #[serde(
22 rename = "charts",
23 skip_serializing_if = "std::collections::BTreeMap::is_empty",
24 default
25 )]
26 charts: super::ComparisonVizDefinitionMap,
27}
28impl ComparisonWorkbookContent {
29 #[inline]
31 pub fn new() -> Self {
32 Self::builder().build()
33 }
34 #[inline]
35 pub fn channel_variables(&self) -> &super::ComparisonChannelVariableMap {
36 &self.channel_variables
37 }
38 #[inline]
40 pub fn charts(&self) -> &super::ComparisonVizDefinitionMap {
41 &self.charts
42 }
43}