Skip to main content

nominal_api_conjure/conjure/objects/scout/layout/api/
analyst_panel.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash,
11    Copy
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct AnalystPanel {
17    #[builder(default, into)]
18    #[serde(
19        rename = "timeRangeInputId",
20        skip_serializing_if = "Option::is_none",
21        default
22    )]
23    time_range_input_id: Option<conjure_object::Uuid>,
24}
25impl AnalystPanel {
26    /// Constructs a new instance of the type.
27    #[inline]
28    pub fn new() -> Self {
29        Self::builder().build()
30    }
31    #[inline]
32    pub fn time_range_input_id(&self) -> Option<conjure_object::Uuid> {
33        self.time_range_input_id.as_ref().map(|o| *o)
34    }
35}