nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// The response to a reingest request.
/// Maps the source dataset RID and file ID to the destination dataset RID and file ID.
#[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 ReingestDatasetsResponse {
    #[builder(
        default,
        map(
            key(type = super::super::super::api::rids::DatasetRid),
            value(type = super::ReingestFilesMapping)
        )
    )]
    #[serde(
        rename = "datasets",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    datasets: std::collections::BTreeMap<
        super::super::super::api::rids::DatasetRid,
        super::ReingestFilesMapping,
    >,
}
impl ReingestDatasetsResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn datasets(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::api::rids::DatasetRid,
        super::ReingestFilesMapping,
    > {
        &self.datasets
    }
}