nominal-api-conjure 0.1354.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// A time range input that can be applied to panel(s)
#[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 TimeRangeInput {
    #[serde(rename = "id")]
    id: conjure_object::Uuid,
    #[builder(default, into)]
    #[serde(rename = "label", skip_serializing_if = "Option::is_none", default)]
    label: Option<String>,
    #[builder(custom(type = super::super::super::super::api::Range, convert = Box::new))]
    #[serde(rename = "timeRange")]
    time_range: Box<super::super::super::super::api::Range>,
}
impl TimeRangeInput {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        id: conjure_object::Uuid,
        time_range: super::super::super::super::api::Range,
    ) -> Self {
        Self::builder().id(id).time_range(time_range).build()
    }
    /// The unique identifier of the input.
    #[inline]
    pub fn id(&self) -> conjure_object::Uuid {
        self.id
    }
    /// The label of the input for display purposes.
    #[inline]
    pub fn label(&self) -> Option<&str> {
        self.label.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn time_range(&self) -> &super::super::super::super::api::Range {
        &*self.time_range
    }
}