#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ExistingVideoIngestDestination {
#[serde(rename = "videoRid")]
video_rid: super::super::super::api::rids::VideoRid,
#[builder(
default,
custom(
type = impl
Into<Option<super::VideoFileIngestDetails>>,
convert = |v|v.into().map(Box::new)
)
)]
#[serde(
rename = "videoFileDetails",
skip_serializing_if = "Option::is_none",
default
)]
video_file_details: Option<Box<super::VideoFileIngestDetails>>,
}
impl ExistingVideoIngestDestination {
#[inline]
pub fn new(video_rid: super::super::super::api::rids::VideoRid) -> Self {
Self::builder().video_rid(video_rid).build()
}
#[inline]
pub fn video_rid(&self) -> &super::super::super::api::rids::VideoRid {
&self.video_rid
}
#[inline]
pub fn video_file_details(&self) -> Option<&super::VideoFileIngestDetails> {
self.video_file_details.as_ref().map(|o| &**o)
}
}