nominal-api 0.1239.0

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 AssetMetricColumn {
    #[builder(custom(type = super::MetricColumnMetadata, convert = Box::new))]
    #[serde(rename = "metadata")]
    metadata: Box<super::MetricColumnMetadata>,
    #[builder(custom(type = super::AssetMetricColumnTimeRange, convert = Box::new))]
    #[serde(rename = "timeRange")]
    time_range: Box<super::AssetMetricColumnTimeRange>,
    #[serde(rename = "aggregation")]
    aggregation: super::MetricColumnAggregation,
    #[builder(custom(type = super::MetricColumnData, convert = Box::new))]
    #[serde(rename = "data")]
    data: Box<super::MetricColumnData>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::MetricColumnStyle>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "style", skip_serializing_if = "Option::is_none", default)]
    style: Option<Box<super::MetricColumnStyle>>,
}
impl AssetMetricColumn {
    #[inline]
    pub fn metadata(&self) -> &super::MetricColumnMetadata {
        &*self.metadata
    }
    #[inline]
    pub fn time_range(&self) -> &super::AssetMetricColumnTimeRange {
        &*self.time_range
    }
    #[inline]
    pub fn aggregation(&self) -> &super::MetricColumnAggregation {
        &self.aggregation
    }
    #[inline]
    pub fn data(&self) -> &super::MetricColumnData {
        &*self.data
    }
    #[inline]
    pub fn style(&self) -> Option<&super::MetricColumnStyle> {
        self.style.as_ref().map(|o| &**o)
    }
}