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 McapIngestionOutput {
    #[builder(custom(type = super::McapSource, convert = Box::new))]
    #[serde(rename = "source")]
    source: Box<super::McapSource>,
    #[builder(custom(type = super::McapDestination, convert = Box::new))]
    #[serde(rename = "target")]
    target: Box<super::McapDestination>,
    #[builder(default, into)]
    #[serde(rename = "videoFileRid", skip_serializing_if = "Option::is_none", default)]
    video_file_rid: Option<super::super::super::api::rids::VideoFileRid>,
}
impl McapIngestionOutput {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(source: super::McapSource, target: super::McapDestination) -> Self {
        Self::builder().source(source).target(target).build()
    }
    #[inline]
    pub fn source(&self) -> &super::McapSource {
        &*self.source
    }
    #[inline]
    pub fn target(&self) -> &super::McapDestination {
        &*self.target
    }
    /// If the destination points to a video, this will be populated with the video file
    /// populated during ingestion.
    #[inline]
    pub fn video_file_rid(
        &self,
    ) -> Option<&super::super::super::api::rids::VideoFileRid> {
        self.video_file_rid.as_ref().map(|o| &*o)
    }
}