Skip to main content

nominal_api/conjure/objects/ingest/manifest/
extractor_upload_metadata.rs

1/// Metadata file created by yeeter after uploading extractor outputs to S3.
2/// This is uploaded to S3 by yeeter and read by the Temporal activity to orchestrate ingestion.
3#[derive(
4    Debug,
5    Clone,
6    conjure_object::serde::Serialize,
7    conjure_object::serde::Deserialize,
8    PartialEq,
9    Eq,
10    PartialOrd,
11    Ord,
12    Hash
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct ExtractorUploadMetadata {
18    #[builder(default, list(item(type = super::UploadMetadata)))]
19    #[serde(rename = "uploads", skip_serializing_if = "Vec::is_empty", default)]
20    uploads: Vec<super::UploadMetadata>,
21}
22impl ExtractorUploadMetadata {
23    /// Constructs a new instance of the type.
24    #[inline]
25    pub fn new() -> Self {
26        Self::builder().build()
27    }
28    /// List of uploaded files with their S3 locations and manifest metadata
29    #[inline]
30    pub fn uploads(&self) -> &[super::UploadMetadata] {
31        &*self.uploads
32    }
33}