/// contains 2 equal-length lists, which contain the video media time and user-provided absolute time
/// for the frame at each index. Enables frame-mapping on the front-end.
#[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 TimestampMappings {
    #[builder(default, list(item(type = f64)))]
    #[serde(rename = "mediaTimestamps", skip_serializing_if = "Vec::is_empty", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    media_timestamps: Vec<f64>,
    #[builder(default, list(item(type = super::super::super::super::api::Timestamp)))]
    #[serde(
        rename = "absoluteTimestamps",
        skip_serializing_if = "Vec::is_empty",
        default
    )]
    absolute_timestamps: Vec<super::super::super::super::api::Timestamp>,
}
impl TimestampMappings {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn media_timestamps(&self) -> &[f64] {
        &*self.media_timestamps
    }
    #[inline]
    pub fn absolute_timestamps(&self) -> &[super::super::super::super::api::Timestamp] {
        &*self.absolute_timestamps
    }
}
