#[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 ComputeExpressionV1Python {
#[builder(into)]
#[serde(rename = "expression")]
expression: String,
#[builder(default, into)]
#[serde(
rename = "nominalComputePythonVersion",
skip_serializing_if = "Option::is_none",
default
)]
nominal_compute_python_version: Option<String>,
}
impl ComputeExpressionV1Python {
#[inline]
pub fn new(expression: impl Into<String>) -> Self {
Self::builder().expression(expression).build()
}
#[inline]
pub fn expression(&self) -> &str {
&*self.expression
}
#[inline]
pub fn nominal_compute_python_version(&self) -> Option<&str> {
self.nominal_compute_python_version.as_ref().map(|o| &**o)
}
}