#[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 {
#[inline]
pub fn new(source_code: impl Into<String>) -> Self {
Self::builder().source_code(source_code).build()
}
#[inline]
pub fn source_code(&self) -> &str {
&*self.source_code
}
}