nominal-api 0.1241.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 TimestreamLocator {
    #[serde(rename = "table")]
    table: super::TableName,
    #[builder(
        default,
        map(
            key(type = super::super::super::super::api::TagName),
            value(type = super::super::super::super::api::TagValue)
        )
    )]
    #[serde(
        rename = "dimensions",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    dimensions: std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    >,
    #[serde(rename = "measure")]
    measure: super::MeasureName,
    #[builder(default, into)]
    #[serde(rename = "attribute", skip_serializing_if = "Option::is_none", default)]
    attribute: Option<super::AttributeName>,
    #[serde(rename = "type")]
    type_: super::TimestreamType,
}
impl TimestreamLocator {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        table: super::TableName,
        measure: super::MeasureName,
        type_: super::TimestreamType,
    ) -> Self {
        Self::builder().table(table).measure(measure).type_(type_).build()
    }
    #[inline]
    pub fn table(&self) -> &super::TableName {
        &self.table
    }
    #[inline]
    pub fn dimensions(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    > {
        &self.dimensions
    }
    #[inline]
    pub fn measure(&self) -> &super::MeasureName {
        &self.measure
    }
    /// If present, will be the attribute within the measurement for multi-measures.
    #[inline]
    pub fn attribute(&self) -> Option<&super::AttributeName> {
        self.attribute.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn type_(&self) -> &super::TimestreamType {
        &self.type_
    }
}