Skip to main content

nominal_api/conjure/objects/scout/video/api/
mcap_timestamp_manifest.rs

1/// Timestamps are derived from the mcap file containing the video frames.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    PartialEq,
8    Eq,
9    PartialOrd,
10    Ord,
11    Hash
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct McapTimestampManifest {
17    #[builder(
18        custom(
19            type = super::super::super::super::api::McapChannelLocator,
20            convert = Box::new
21        )
22    )]
23    #[serde(rename = "mcapChannelLocator")]
24    mcap_channel_locator: Box<super::super::super::super::api::McapChannelLocator>,
25}
26impl McapTimestampManifest {
27    /// Constructs a new instance of the type.
28    #[inline]
29    pub fn new(
30        mcap_channel_locator: super::super::super::super::api::McapChannelLocator,
31    ) -> Self {
32        Self::builder().mcap_channel_locator(mcap_channel_locator).build()
33    }
34    #[inline]
35    pub fn mcap_channel_locator(
36        &self,
37    ) -> &super::super::super::super::api::McapChannelLocator {
38        &*self.mcap_channel_locator
39    }
40}