nominal_api/conjure/objects/ingest/api/
mcap_ingestion_output.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct McapIngestionOutput {
16 #[builder(custom(type = super::McapSource, convert = Box::new))]
17 #[serde(rename = "source")]
18 source: Box<super::McapSource>,
19 #[builder(custom(type = super::McapDestination, convert = Box::new))]
20 #[serde(rename = "target")]
21 target: Box<super::McapDestination>,
22 #[builder(default, into)]
23 #[serde(rename = "videoFileRid", skip_serializing_if = "Option::is_none", default)]
24 video_file_rid: Option<super::super::super::api::rids::VideoFileRid>,
25}
26impl McapIngestionOutput {
27 #[inline]
29 pub fn new(source: super::McapSource, target: super::McapDestination) -> Self {
30 Self::builder().source(source).target(target).build()
31 }
32 #[inline]
33 pub fn source(&self) -> &super::McapSource {
34 &*self.source
35 }
36 #[inline]
37 pub fn target(&self) -> &super::McapDestination {
38 &*self.target
39 }
40 #[inline]
43 pub fn video_file_rid(
44 &self,
45 ) -> Option<&super::super::super::api::rids::VideoFileRid> {
46 self.video_file_rid.as_ref().map(|o| &*o)
47 }
48}