nominal-api-conjure 0.1452.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Metadata derived from resolving a dataset into its contributing data scopes.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    conjure_object::log_safety::derive::LogSafe
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct DatasetResolutionMetadata {
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::super::api::Timestamp>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(
        rename = "latestStandaloneAssetDataTime",
        skip_serializing_if = "Option::is_none",
        default
    )]
    latest_standalone_asset_data_time: Option<
        Box<super::super::super::super::api::Timestamp>,
    >,
    #[builder(default, list(item(type = super::ResolvedRunInterval)))]
    #[serde(rename = "runIntervals", skip_serializing_if = "Vec::is_empty", default)]
    run_intervals: Vec<super::ResolvedRunInterval>,
    #[builder(default, list(item(type = super::ResolvedDatasetInterval)))]
    #[serde(rename = "datasetIntervals", skip_serializing_if = "Vec::is_empty", default)]
    dataset_intervals: Vec<super::ResolvedDatasetInterval>,
}
impl DatasetResolutionMetadata {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// Latest data timestamp across scopes reached from standalone asset inputs. Asset scopes reached
    /// through runs are excluded so clients can combine this value with declared run intervals.
    #[inline]
    pub fn latest_standalone_asset_data_time(
        &self,
    ) -> Option<&super::super::super::super::api::Timestamp> {
        self.latest_standalone_asset_data_time.as_ref().map(|o| &**o)
    }
    /// Run intervals in the dataset's output time domain after time shifts and anchor alignment.
    #[inline]
    pub fn run_intervals(&self) -> &[super::ResolvedRunInterval] {
        &*self.run_intervals
    }
    /// Time intervals of catalog-dataset scopes reached without an intermediating asset or run —
    /// e.g. a saved dataset referenced directly, including each input dataset a derived dataset
    /// resolves to. Each interval is the backing dataset's recorded catalog bounds, transformed
    /// into the dataset's output time domain after time shifts. A dataset with no recorded
    /// bounds contributes no interval, as does one whose bounds are relative: those are
    /// offsets from an unanchored zero rather than wall-clock times.
    #[inline]
    pub fn dataset_intervals(&self) -> &[super::ResolvedDatasetInterval] {
        &*self.dataset_intervals
    }
}