nominal-api-conjure 0.1430.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Everything the workflow needs to run without the client: the uploaded files' locations and
/// timestamp interpretation, plus the titles for the resources it creates (the client derives
/// them from the uploaded filename before creating the automation).
#[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 CreateIngestAutomationRequest {
    #[serde(rename = "workspaceRid")]
    workspace_rid: super::super::super::api::rids::WorkspaceRid,
    #[builder(default, list(item(type = super::IngestSource)))]
    #[serde(rename = "sources", skip_serializing_if = "Vec::is_empty", default)]
    sources: Vec<super::IngestSource>,
    #[builder(custom(type = super::TimestampMetadata, convert = Box::new))]
    #[serde(rename = "timestampMetadata")]
    timestamp_metadata: Box<super::TimestampMetadata>,
    #[builder(into)]
    #[serde(rename = "assetTitle")]
    asset_title: String,
    #[builder(into)]
    #[serde(rename = "datasetTitle")]
    dataset_title: String,
    #[builder(into)]
    #[serde(rename = "runTitle")]
    run_title: String,
    #[builder(into)]
    #[serde(rename = "refName")]
    ref_name: String,
}
impl CreateIngestAutomationRequest {
    #[inline]
    pub fn workspace_rid(&self) -> &super::super::super::api::rids::WorkspaceRid {
        &self.workspace_rid
    }
    /// Locations of the already-uploaded files, all ingested into the same dataset. At least
    /// one; at most 20 (enforced by the handler). Only s3 sources are supported today.
    #[inline]
    pub fn sources(&self) -> &[super::IngestSource] {
        &*self.sources
    }
    /// The timestamp column and interpretation the user confirmed in the wizard, applied to every file.
    #[inline]
    pub fn timestamp_metadata(&self) -> &super::TimestampMetadata {
        &*self.timestamp_metadata
    }
    /// Maximum length 500 characters (enforced by the handler, like the other titles).
    #[inline]
    pub fn asset_title(&self) -> &str {
        &*self.asset_title
    }
    /// Maximum length 500 characters.
    #[inline]
    pub fn dataset_title(&self) -> &str {
        &*self.dataset_title
    }
    /// Maximum length 500 characters.
    #[inline]
    pub fn run_title(&self) -> &str {
        &*self.run_title
    }
    /// Data scope name linking the created asset and dataset (typically "default").
    /// Maximum length 100 characters.
    #[inline]
    pub fn ref_name(&self) -> &str {
        &*self.ref_name
    }
}