nominal-api-conjure 0.1301.0

Conjure HTTP API bindings for the Nominal platform
Documentation
#[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 NamedSeries {
    #[builder(custom(type = super::StringConstant, convert = Box::new))]
    #[serde(rename = "name")]
    name: Box<super::StringConstant>,
    #[builder(custom(type = super::Series, convert = Box::new))]
    #[serde(rename = "definition")]
    definition: Box<super::Series>,
}
impl NamedSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(name: super::StringConstant, definition: super::Series) -> Self {
        Self::builder().name(name).definition(definition).build()
    }
    /// 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::Series {
        &*self.definition
    }
}