nominal-api-conjure 0.1346.1

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Metadata file created by yeeter after uploading extractor outputs to S3.
/// This is uploaded to S3 by yeeter and read by the Temporal activity to orchestrate ingestion.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ExtractorUploadMetadata {
    #[builder(default, list(item(type = super::UploadMetadata)))]
    #[serde(rename = "uploads", skip_serializing_if = "Vec::is_empty", default)]
    uploads: Vec<super::UploadMetadata>,
    #[builder(default, into)]
    #[serde(rename = "videoUploads", skip_serializing_if = "Option::is_none", default)]
    video_uploads: Option<Vec<super::VideoUploadMetadata>>,
}
impl ExtractorUploadMetadata {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// List of uploaded files with their S3 locations and manifest metadata
    #[inline]
    pub fn uploads(&self) -> &[super::UploadMetadata] {
        &*self.uploads
    }
    /// Uploaded video files and their resolved timestamp metadata.
    #[inline]
    pub fn video_uploads(&self) -> Option<&[super::VideoUploadMetadata]> {
        self.video_uploads.as_ref().map(|o| &**o)
    }
}