nominal-api-conjure 0.1443.1

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Rust source code defining the UDF entrypoint and any helper functions.
#[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 RustUdfSource {
    #[builder(into)]
    #[serde(rename = "sourceCode")]
    source_code: String,
}
impl RustUdfSource {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(source_code: impl Into<String>) -> Self {
        Self::builder().source_code(source_code).build()
    }
    /// Rust source code to transpile into WASM. The operation consuming this source defines the entrypoint
    /// signature: scalar UDFs receive one scalar per input series, while aggregation UDFs receive grouped
    /// value vectors. If several functions appear at the top level, annotate the entrypoint with `#[main]`.
    #[inline]
    pub fn source_code(&self) -> &str {
        &*self.source_code
    }
}