Skip to main content

nominal_api/conjure/objects/ingest/api/
timestamp_manifest.rs

1/// The timestamp manifest files will contain a list of absolute timestamps, in nanoseconds, that correspond to
2/// each frame in a video. Each file should be of type JSON and store a single list, the length of which equals
3/// the number of frames in its corresponding video.
4#[derive(
5    Debug,
6    Clone,
7    conjure_object::serde::Serialize,
8    conjure_object::serde::Deserialize,
9    PartialEq,
10    Eq,
11    PartialOrd,
12    Ord,
13    Hash
14)]
15#[serde(crate = "conjure_object::serde")]
16#[conjure_object::private::staged_builder::staged_builder]
17#[builder(crate = conjure_object::private::staged_builder, update, inline)]
18pub struct TimestampManifest {
19    #[builder(default, list(item(type = super::IngestSource)))]
20    #[serde(rename = "sources", skip_serializing_if = "Vec::is_empty", default)]
21    sources: Vec<super::IngestSource>,
22}
23impl TimestampManifest {
24    /// Constructs a new instance of the type.
25    #[inline]
26    pub fn new() -> Self {
27        Self::builder().build()
28    }
29    #[inline]
30    pub fn sources(&self) -> &[super::IngestSource] {
31        &*self.sources
32    }
33}