nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
#[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 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(video_rid: super::super::super::api::rids::VideoRid) -> Self {
        Self::builder().video_rid(video_rid).build()
    }
    /// RID of the video to ingest the newly created video file to.
    #[inline]
    pub fn video_rid(&self) -> &super::super::super::api::rids::VideoRid {
        &self.video_rid
    }
    /// Metadata to associate with any created video file
    #[inline]
    pub fn video_file_details(&self) -> Option<&super::VideoFileIngestDetails> {
        self.video_file_details.as_ref().map(|o| &**o)
    }
}