nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 TimestampMetadata {
    #[builder(into)]
    #[serde(rename = "seriesName")]
    series_name: String,
    #[builder(custom(type = super::TimestampType, convert = Box::new))]
    #[serde(rename = "timestampType")]
    timestamp_type: Box<super::TimestampType>,
}
impl TimestampMetadata {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        series_name: impl Into<String>,
        timestamp_type: super::TimestampType,
    ) -> Self {
        Self::builder().series_name(series_name).timestamp_type(timestamp_type).build()
    }
    #[inline]
    pub fn series_name(&self) -> &str {
        &*self.series_name
    }
    #[inline]
    pub fn timestamp_type(&self) -> &super::TimestampType {
        &*self.timestamp_type
    }
}