nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Adds a derived enum series to the base frame. If a series with the same name already exists,
/// then it will be replaced.
#[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 WithEnumSeriesFrame {
    #[builder(custom(type = super::DataFrame, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::DataFrame>,
    #[builder(custom(type = super::StringConstant, convert = Box::new))]
    #[serde(rename = "name")]
    name: Box<super::StringConstant>,
    #[builder(custom(type = super::EnumSeries, convert = Box::new))]
    #[serde(rename = "definition")]
    definition: Box<super::EnumSeries>,
}
impl WithEnumSeriesFrame {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::DataFrame,
        name: super::StringConstant,
        definition: super::EnumSeries,
    ) -> Self {
        Self::builder().input(input).name(name).definition(definition).build()
    }
    /// The base frame to which the new series will be added.
    #[inline]
    pub fn input(&self) -> &super::DataFrame {
        &*self.input
    }
    /// Name of the new derived series.
    #[inline]
    pub fn name(&self) -> &super::StringConstant {
        &*self.name
    }
    /// Compute expression defining the series values.
    #[inline]
    pub fn definition(&self) -> &super::EnumSeries {
        &*self.definition
    }
}