#[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 VideoOptsV2 {
#[builder(custom(type = super::IngestSource, convert = Box::new))]
#[serde(rename = "source")]
source: Box<super::IngestSource>,
#[builder(custom(type = super::DatasetIngestTarget, convert = Box::new))]
#[serde(rename = "target")]
target: Box<super::DatasetIngestTarget>,
#[builder(
custom(
type = super::super::super::scout::video::api::VideoFileTimestampManifest,
convert = Box::new
)
)]
#[serde(rename = "timestampManifest")]
timestamp_manifest: Box<
super::super::super::scout::video::api::VideoFileTimestampManifest,
>,
#[serde(rename = "channel")]
channel: super::super::super::api::Channel,
#[builder(
default,
map(
key(type = super::super::super::api::TagName),
value(type = super::super::super::api::TagValue)
)
)]
#[serde(
rename = "tags",
skip_serializing_if = "std::collections::BTreeMap::is_empty",
default
)]
tags: std::collections::BTreeMap<
super::super::super::api::TagName,
super::super::super::api::TagValue,
>,
#[builder(default, into)]
#[serde(
rename = "overWriteSegments",
skip_serializing_if = "Option::is_none",
default
)]
over_write_segments: Option<bool>,
}
impl VideoOptsV2 {
#[inline]
pub fn source(&self) -> &super::IngestSource {
&*self.source
}
#[inline]
pub fn target(&self) -> &super::DatasetIngestTarget {
&*self.target
}
#[inline]
pub fn timestamp_manifest(
&self,
) -> &super::super::super::scout::video::api::VideoFileTimestampManifest {
&*self.timestamp_manifest
}
#[inline]
pub fn channel(&self) -> &super::super::super::api::Channel {
&self.channel
}
#[inline]
pub fn tags(
&self,
) -> &std::collections::BTreeMap<
super::super::super::api::TagName,
super::super::super::api::TagValue,
> {
&self.tags
}
#[inline]
pub fn over_write_segments(&self) -> Option<bool> {
self.over_write_segments.as_ref().map(|o| *o)
}
}