#[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 RollingOperationSeries {
#[builder(custom(type = super::NumericSeries, convert = Box::new))]
#[serde(rename = "input")]
input: Box<super::NumericSeries>,
#[builder(custom(type = super::Window, convert = Box::new))]
#[serde(rename = "window")]
window: Box<super::Window>,
#[builder(custom(type = super::NumericAggregationOperator, convert = Box::new))]
#[serde(rename = "operator")]
operator: Box<super::NumericAggregationOperator>,
}
impl RollingOperationSeries {
#[inline]
pub fn new(
input: super::NumericSeries,
window: super::Window,
operator: super::NumericAggregationOperator,
) -> Self {
Self::builder().input(input).window(window).operator(operator).build()
}
#[inline]
pub fn input(&self) -> &super::NumericSeries {
&*self.input
}
#[inline]
pub fn window(&self) -> &super::Window {
&*self.window
}
#[inline]
pub fn operator(&self) -> &super::NumericAggregationOperator {
&*self.operator
}
}