nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ExtremaRangesNode {
    #[builder(custom(type = super::NumericSeriesNode, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::NumericSeriesNode>,
    #[serde(rename = "returnsPeaks")]
    returns_peaks: bool,
    #[builder(default, into)]
    #[serde(
        rename = "minimumProminence",
        skip_serializing_if = "Option::is_none",
        default
    )]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    minimum_prominence: Option<f64>,
}
impl ExtremaRangesNode {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::NumericSeriesNode, returns_peaks: bool) -> Self {
        Self::builder().input(input).returns_peaks(returns_peaks).build()
    }
    #[inline]
    pub fn input(&self) -> &super::NumericSeriesNode {
        &*self.input
    }
    #[inline]
    pub fn returns_peaks(&self) -> bool {
        self.returns_peaks
    }
    #[inline]
    pub fn minimum_prominence(&self) -> Option<f64> {
        self.minimum_prominence.as_ref().map(|o| *o)
    }
}