nominal_api/conjure/objects/ingest/api/
existing_video_ingest_destination.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 ExistingVideoIngestDestination {
16 #[serde(rename = "videoRid")]
17 video_rid: super::super::super::api::rids::VideoRid,
18 #[builder(
19 default,
20 custom(
21 type = impl
22 Into<Option<super::VideoFileIngestDetails>>,
23 convert = |v|v.into().map(Box::new)
24 )
25 )]
26 #[serde(
27 rename = "videoFileDetails",
28 skip_serializing_if = "Option::is_none",
29 default
30 )]
31 video_file_details: Option<Box<super::VideoFileIngestDetails>>,
32}
33impl ExistingVideoIngestDestination {
34 #[inline]
36 pub fn new(video_rid: super::super::super::api::rids::VideoRid) -> Self {
37 Self::builder().video_rid(video_rid).build()
38 }
39 #[inline]
41 pub fn video_rid(&self) -> &super::super::super::api::rids::VideoRid {
42 &self.video_rid
43 }
44 #[inline]
46 pub fn video_file_details(&self) -> Option<&super::VideoFileIngestDetails> {
47 self.video_file_details.as_ref().map(|o| &**o)
48 }
49}