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 ReingestDatasetsRequest {
    #[builder(default, list(item(type = super::super::super::api::rids::DatasetRid)))]
    #[serde(rename = "sourceDatasets", skip_serializing_if = "Vec::is_empty", default)]
    source_datasets: Vec<super::super::super::api::rids::DatasetRid>,
    #[builder(custom(type = super::DatasetIngestTarget, convert = Box::new))]
    #[serde(rename = "targetDataset")]
    target_dataset: Box<super::DatasetIngestTarget>,
    #[builder(
        default,
        map(
            key(type = super::super::super::api::rids::DatasetRid),
            value(type = super::IngestMetadata)
        )
    )]
    #[serde(
        rename = "ingestMetadata",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    ingest_metadata: std::collections::BTreeMap<
        super::super::super::api::rids::DatasetRid,
        super::IngestMetadata,
    >,
}
impl ReingestDatasetsRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(target_dataset: super::DatasetIngestTarget) -> Self {
        Self::builder().target_dataset(target_dataset).build()
    }
    /// The datasets to reingest data from. Can only include tagless, non-streaming datasets (V1).
    /// The datasets must be of the same granularity and must only include CSV or Parquet files.
    /// Will attempt to reingest from datasets in list order.
    #[inline]
    pub fn source_datasets(&self) -> &[super::super::super::api::rids::DatasetRid] {
        &*self.source_datasets
    }
    /// The dataset to ingest data into. Can either be a new dataset or an existing dataset RID.
    #[inline]
    pub fn target_dataset(&self) -> &super::DatasetIngestTarget {
        &*self.target_dataset
    }
    /// Mapping of dataset to ingest metadata.
    /// Ingest metadata only needs to be provided in request if it cannot be recovered from prior ingests.
    /// See documentation on each field to determine what metadata can be auto-recovered.
    #[inline]
    pub fn ingest_metadata(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::api::rids::DatasetRid,
        super::IngestMetadata,
    > {
        &self.ingest_metadata
    }
}