/// Keeps every Nth row of the timestamp-ordered input, per series. No grid arithmetic, no
/// interpolation, no boundary handling. Output count is ceil(input_count / n) per series.
#[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 EnumNthPointDownsampleSeriesNode {
    #[builder(custom(type = super::EnumSeriesNode, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::EnumSeriesNode>,
    #[serde(rename = "n")]
    n: i32,
}
impl EnumNthPointDownsampleSeriesNode {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::EnumSeriesNode, n: i32) -> Self {
        Self::builder().input(input).n(n).build()
    }
    #[inline]
    pub fn input(&self) -> &super::EnumSeriesNode {
        &*self.input
    }
    #[inline]
    pub fn n(&self) -> i32 {
        self.n
    }
}
