nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// For read requests, we want to require all fields
#[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 RunDataSource {
    #[builder(custom(type = super::DataSource, convert = Box::new))]
    #[serde(rename = "dataSource")]
    data_source: Box<super::DataSource>,
    #[builder(custom(type = super::Duration, convert = Box::new))]
    #[serde(rename = "offset")]
    offset: Box<super::Duration>,
    #[serde(rename = "refName")]
    ref_name: super::super::super::api::DataSourceRefName,
    #[serde(rename = "timestampType")]
    timestamp_type: super::WeakTimestampType,
    #[builder(
        default,
        map(
            key(type = super::super::super::super::api::TagName),
            value(type = super::super::super::super::api::TagValue)
        )
    )]
    #[serde(
        rename = "seriesTags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    series_tags: std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    >,
}
impl RunDataSource {
    #[inline]
    pub fn data_source(&self) -> &super::DataSource {
        &*self.data_source
    }
    /// This offset is used for small time-sync corrections. Notably, it is
    /// not the offset to move a relative data source to the start of the run.
    #[inline]
    pub fn offset(&self) -> &super::Duration {
        &*self.offset
    }
    /// Included for convenience, duplicated from the key of the map
    #[inline]
    pub fn ref_name(&self) -> &super::super::super::api::DataSourceRefName {
        &self.ref_name
    }
    #[inline]
    pub fn timestamp_type(&self) -> &super::WeakTimestampType {
        &self.timestamp_type
    }
    /// Used to resolve logical series for this data source.
    #[inline]
    pub fn series_tags(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    > {
        &self.series_tags
    }
}