#[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 VideoFileIngestDetails {
#[builder(default, into)]
#[serde(
rename = "fileDescription",
skip_serializing_if = "Option::is_none",
default
)]
file_description: Option<String>,
#[builder(default, into)]
#[serde(rename = "fileProperties", skip_serializing_if = "Option::is_none", default)]
file_properties: Option<
std::collections::BTreeMap<
super::super::super::api::PropertyName,
super::super::super::api::PropertyValue,
>,
>,
#[builder(default, into)]
#[serde(rename = "fileLabels", skip_serializing_if = "Option::is_none", default)]
file_labels: Option<std::collections::BTreeSet<super::super::super::api::Label>>,
}
impl VideoFileIngestDetails {
#[inline]
pub fn new() -> Self {
Self::builder().build()
}
#[inline]
pub fn file_description(&self) -> Option<&str> {
self.file_description.as_ref().map(|o| &**o)
}
#[deprecated(
note = "Field is ignored as video files do not have properties.\nWill be removed after 4/5/2025\n"
)]
#[inline]
pub fn file_properties(
&self,
) -> Option<
&std::collections::BTreeMap<
super::super::super::api::PropertyName,
super::super::super::api::PropertyValue,
>,
> {
self.file_properties.as_ref().map(|o| &*o)
}
#[deprecated(
note = "Field is ignored as video files do not have labels.\nWill be removed after 4/5/2025\n"
)]
#[inline]
pub fn file_labels(
&self,
) -> Option<&std::collections::BTreeSet<super::super::super::api::Label>> {
self.file_labels.as_ref().map(|o| &*o)
}
}