/// A user-defined enum aggregation. The supported ABI is a Rust function with one vector input and a
/// `String` return value. Numeric input series use `Vec<f64>` and enum input series use `Vec<String>`.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct EnumAggregationUdf {
    #[builder(custom(type = super::UdfSource, convert = Box::new))]
    #[serde(rename = "source")]
    source: Box<super::UdfSource>,
}
impl EnumAggregationUdf {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(source: super::UdfSource) -> Self {
        Self::builder().source(source).build()
    }
    #[inline]
    pub fn source(&self) -> &super::UdfSource {
        &*self.source
    }
}
