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 ExistingDatasetIngestDestination {
    #[serde(rename = "datasetRid")]
    dataset_rid: conjure_object::ResourceIdentifier,
    #[builder(default, into)]
    #[serde(
        rename = "expandRunBounds",
        skip_serializing_if = "Option::is_none",
        default
    )]
    expand_run_bounds: Option<Vec<super::super::super::scout::run::api::RunRid>>,
}
impl ExistingDatasetIngestDestination {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(dataset_rid: conjure_object::ResourceIdentifier) -> Self {
        Self::builder().dataset_rid(dataset_rid).build()
    }
    #[inline]
    pub fn dataset_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.dataset_rid
    }
    /// The ingest will keep track of the range of timestamps in the ingested data and update the included
    /// run's time bounds.
    /// For runs with no end time (uninitialized), it will always set the start time to the file's start time
    /// and set the end time to the file's end time.
    /// For runs with existing end times, it will only expand the bounds (earliest start time, latest end time).
    #[inline]
    pub fn expand_run_bounds(
        &self,
    ) -> Option<&[super::super::super::scout::run::api::RunRid]> {
        self.expand_run_bounds.as_ref().map(|o| &**o)
    }
}