nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Rolling time-window aggregation: for each point in the input, aggregate the values within the preceding
/// time window.
#[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 RollingTimeAggregationBuilder {
    #[builder(custom(type = super::Series, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Series>,
    #[builder(custom(type = super::Duration, convert = Box::new))]
    #[serde(rename = "window")]
    window: Box<super::Duration>,
}
impl RollingTimeAggregationBuilder {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::Series, window: super::Duration) -> Self {
        Self::builder().input(input).window(window).build()
    }
    #[inline]
    pub fn input(&self) -> &super::Series {
        &*self.input
    }
    #[inline]
    pub fn window(&self) -> &super::Duration {
        &*self.window
    }
}