nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// Request to update metadata for a given video file.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct UpdateVideoFileRequest {
    #[builder(default, into)]
    #[serde(rename = "title", skip_serializing_if = "Option::is_none", default)]
    title: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "description", skip_serializing_if = "Option::is_none", default)]
    description: Option<String>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::super::api::Timestamp>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(
        rename = "startingTimestamp",
        skip_serializing_if = "Option::is_none",
        default
    )]
    starting_timestamp: Option<Box<super::super::super::super::api::Timestamp>>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::ScaleParameter>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "scaleParameter", skip_serializing_if = "Option::is_none", default)]
    scale_parameter: Option<Box<super::ScaleParameter>>,
    #[builder(default, into)]
    #[serde(
        rename = "segmentedFilesSize",
        skip_serializing_if = "Option::is_none",
        default
    )]
    segmented_files_size: Option<conjure_object::SafeLong>,
}
impl UpdateVideoFileRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn title(&self) -> Option<&str> {
        self.title.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn description(&self) -> Option<&str> {
        self.description.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn starting_timestamp(
        &self,
    ) -> Option<&super::super::super::super::api::Timestamp> {
        self.starting_timestamp.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn scale_parameter(&self) -> Option<&super::ScaleParameter> {
        self.scale_parameter.as_ref().map(|o| &**o)
    }
    /// The total size of all the post-processed segments corresponding to this video file in bytes.
    #[inline]
    pub fn segmented_files_size(&self) -> Option<conjure_object::SafeLong> {
        self.segmented_files_size.as_ref().map(|o| *o)
    }
}