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 StaleRangesNode {
    #[builder(custom(type = super::SeriesNode, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::SeriesNode>,
    #[builder(
        custom(type = super::super::super::super::run::api::Duration, convert = Box::new)
    )]
    #[serde(rename = "threshold")]
    threshold: Box<super::super::super::super::run::api::Duration>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::super::super::api::Timestamp>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "startTimestamp", skip_serializing_if = "Option::is_none", default)]
    start_timestamp: Option<Box<super::super::super::super::super::api::Timestamp>>,
}
impl StaleRangesNode {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::SeriesNode,
        threshold: super::super::super::super::run::api::Duration,
    ) -> Self {
        Self::builder().input(input).threshold(threshold).build()
    }
    #[inline]
    pub fn input(&self) -> &super::SeriesNode {
        &*self.input
    }
    #[inline]
    pub fn threshold(&self) -> &super::super::super::super::run::api::Duration {
        &*self.threshold
    }
    #[inline]
    pub fn start_timestamp(
        &self,
    ) -> Option<&super::super::super::super::super::api::Timestamp> {
        self.start_timestamp.as_ref().map(|o| &**o)
    }
}