nominal_api/conjure/objects/scout/compute/api/
numeric_aggregation_udf.rs1#[derive(
9 Debug,
10 Clone,
11 conjure_object::serde::Serialize,
12 conjure_object::serde::Deserialize,
13 PartialEq,
14 Eq,
15 PartialOrd,
16 Ord,
17 Hash
18)]
19#[serde(crate = "conjure_object::serde")]
20#[conjure_object::private::staged_builder::staged_builder]
21#[builder(crate = conjure_object::private::staged_builder, update, inline)]
22pub struct NumericAggregationUdf {
23 #[builder(custom(type = super::UdfSource, convert = Box::new))]
24 #[serde(rename = "source")]
25 source: Box<super::UdfSource>,
26}
27impl NumericAggregationUdf {
28 #[inline]
30 pub fn new(source: super::UdfSource) -> Self {
31 Self::builder().source(source).build()
32 }
33 #[inline]
34 pub fn source(&self) -> &super::UdfSource {
35 &*self.source
36 }
37}