/// Fills all empty resample intervals with a single constant value.
///
/// If a resampled time interval (bucket) contains no data points from the input, it will
/// be assigned the specified 'constant' as a default value. This applies to gaps at the start of the
/// series, between data points, and at the end.
#[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 NumericConstantResampleInterpolationConfiguration {
    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
    #[serde(rename = "constant")]
    constant: Box<super::DoubleConstant>,
}
impl NumericConstantResampleInterpolationConfiguration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(constant: super::DoubleConstant) -> Self {
        Self::builder().constant(constant).build()
    }
    #[inline]
    pub fn constant(&self) -> &super::DoubleConstant {
        &*self.constant
    }
}
