nominal-api-conjure 0.1452.0

Conjure HTTP API bindings for the Nominal platform
Documentation
#[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 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(expression: impl Into<String>) -> Self {
        Self::builder().expression(expression).build()
    }
    /// The python code string representing the compute. Can be up to 10000 characters long. Inputs are
    /// referenced by variable name; the binding from name to locator lives on whichever object carries
    /// this expression.
    #[inline]
    pub fn expression(&self) -> &str {
        &*self.expression
    }
    /// The Nominal compute python version identifier which the expression was written in. Used to determine if
    /// any migrations are needed to later versions of the python compute syntax. If not present, assumes the
    /// oldest version.
    #[inline]
    pub fn nominal_compute_python_version(&self) -> Option<&str> {
        self.nominal_compute_python_version.as_ref().map(|o| &**o)
    }
}