nominal-api-conjure 0.1378.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Expands ranges using an authored Duration expression and a selected padding direction.
#[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 PaddedRangesV2 {
    #[builder(custom(type = super::RangeSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::RangeSeries>,
    #[builder(custom(type = super::Duration, convert = Box::new))]
    #[serde(rename = "duration")]
    duration: Box<super::Duration>,
    #[serde(rename = "paddingConfiguration")]
    padding_configuration: super::RangePaddingConfiguration,
}
impl PaddedRangesV2 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::RangeSeries,
        duration: super::Duration,
        padding_configuration: super::RangePaddingConfiguration,
    ) -> Self {
        Self::builder()
            .input(input)
            .duration(duration)
            .padding_configuration(padding_configuration)
            .build()
    }
    #[inline]
    pub fn input(&self) -> &super::RangeSeries {
        &*self.input
    }
    /// How far to extend each range on every padded side.
    #[inline]
    pub fn duration(&self) -> &super::Duration {
        &*self.duration
    }
    #[inline]
    pub fn padding_configuration(&self) -> &super::RangePaddingConfiguration {
        &self.padding_configuration
    }
}