Skip to main content

nominal_api/conjure/objects/scout/compute/resolved/api/
absolute_threshold.rs

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