nominal_api/conjure/objects/scout/compute/api/
stability_detection_ranges.rs1#[derive(
7 Debug,
8 Clone,
9 conjure_object::serde::Serialize,
10 conjure_object::serde::Deserialize,
11 conjure_object::private::DeriveWith
12)]
13#[serde(crate = "conjure_object::serde")]
14#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct StabilityDetectionRanges {
18 #[builder(custom(type = super::NumericSeries, convert = Box::new))]
19 #[serde(rename = "input")]
20 input: Box<super::NumericSeries>,
21 #[builder(custom(type = super::StabilityWindowConfiguration, convert = Box::new))]
22 #[serde(rename = "windowConfiguration")]
23 window_configuration: Box<super::StabilityWindowConfiguration>,
24 #[builder(custom(type = super::Threshold, convert = Box::new))]
25 #[serde(rename = "threshold")]
26 threshold: Box<super::Threshold>,
27}
28impl StabilityDetectionRanges {
29 #[inline]
31 pub fn new(
32 input: super::NumericSeries,
33 window_configuration: super::StabilityWindowConfiguration,
34 threshold: super::Threshold,
35 ) -> Self {
36 Self::builder()
37 .input(input)
38 .window_configuration(window_configuration)
39 .threshold(threshold)
40 .build()
41 }
42 #[inline]
43 pub fn input(&self) -> &super::NumericSeries {
44 &*self.input
45 }
46 #[inline]
47 pub fn window_configuration(&self) -> &super::StabilityWindowConfiguration {
48 &*self.window_configuration
49 }
50 #[inline]
51 pub fn threshold(&self) -> &super::Threshold {
52 &*self.threshold
53 }
54}