Skip to main content

nominal_api/conjure/objects/scout/chartdefinition/api/
threshold_disconnected_values.rs

1/// NOTE this is deprecated and will be translated to NeverConnectDisconnectedValues by the frontend.
2/// This option indicates the duration below which disconnected values will always be connected with a line.
3#[derive(
4    Debug,
5    Clone,
6    conjure_object::serde::Serialize,
7    conjure_object::serde::Deserialize,
8    PartialEq,
9    Eq,
10    PartialOrd,
11    Ord,
12    Hash
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct ThresholdDisconnectedValues {
18    #[builder(
19        custom(type = super::super::super::run::api::Duration, convert = Box::new)
20    )]
21    #[serde(rename = "type")]
22    type_: Box<super::super::super::run::api::Duration>,
23}
24impl ThresholdDisconnectedValues {
25    /// Constructs a new instance of the type.
26    #[inline]
27    pub fn new(type_: super::super::super::run::api::Duration) -> Self {
28        Self::builder().type_(type_).build()
29    }
30    #[inline]
31    pub fn type_(&self) -> &super::super::super::run::api::Duration {
32        &*self.type_
33    }
34}