nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Resamples the input series to a new resolution using interpolation.
/// Outputs data for timestamps corresponding to the defined frequency. Based on interpolation strategy,
/// determines range of timestamps to output data for and interpolates values where necessary.
#[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 NumericResampleSeries {
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::NumericSeries>,
    #[builder(custom(type = super::NumericResampleConfiguration, convert = Box::new))]
    #[serde(rename = "resampleConfiguration")]
    resample_configuration: Box<super::NumericResampleConfiguration>,
}
impl NumericResampleSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::NumericSeries,
        resample_configuration: super::NumericResampleConfiguration,
    ) -> Self {
        Self::builder()
            .input(input)
            .resample_configuration(resample_configuration)
            .build()
    }
    #[inline]
    pub fn input(&self) -> &super::NumericSeries {
        &*self.input
    }
    /// The interpolation strategy and interval at which to resample the series
    #[inline]
    pub fn resample_configuration(&self) -> &super::NumericResampleConfiguration {
        &*self.resample_configuration
    }
}