nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Executes user-provided scalar UDF code over aligned inputs. The function must return one output for each
/// aligned input row, with the return type matching the series type that contains this node.
#[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 ScalarUdfSeries {
    #[builder(default, list(item(type = super::Series)))]
    #[serde(rename = "inputs", skip_serializing_if = "Vec::is_empty", default)]
    inputs: Vec<super::Series>,
    #[builder(custom(type = super::UdfSource, convert = Box::new))]
    #[serde(rename = "source")]
    source: Box<super::UdfSource>,
}
impl ScalarUdfSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(source: super::UdfSource) -> Self {
        Self::builder().source(source).build()
    }
    /// Input series passed to the UDF in argument order.
    #[inline]
    pub fn inputs(&self) -> &[super::Series] {
        &*self.inputs
    }
    /// Language-specific source definition for the UDF.
    #[inline]
    pub fn source(&self) -> &super::UdfSource {
        &*self.source
    }
}