nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Select the Nth range (0-indexed) from a range series.
#[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 NthRange {
    #[builder(custom(type = super::RangeSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::RangeSeries>,
    #[builder(custom(type = super::IntegerConstant, convert = Box::new))]
    #[serde(rename = "index")]
    index: Box<super::IntegerConstant>,
    #[serde(rename = "sortOrder")]
    sort_order: super::RangeSortOrder,
}
impl NthRange {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::RangeSeries,
        index: super::IntegerConstant,
        sort_order: super::RangeSortOrder,
    ) -> Self {
        Self::builder().input(input).index(index).sort_order(sort_order).build()
    }
    #[inline]
    pub fn input(&self) -> &super::RangeSeries {
        &*self.input
    }
    #[inline]
    pub fn index(&self) -> &super::IntegerConstant {
        &*self.index
    }
    #[inline]
    pub fn sort_order(&self) -> &super::RangeSortOrder {
        &self.sort_order
    }
}