/// Bounding timestamps for the frames within a segment. For non-frame-mapped videos, the min and max media
/// timestamps will be empty.
#[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 SegmentSummary {
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "minAbsoluteTimestamp")]
    min_absolute_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "maxAbsoluteTimestamp")]
    max_absolute_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[serde(rename = "minMediaTimestamp")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_media_timestamp: f64,
    #[serde(rename = "maxMediaTimestamp")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_media_timestamp: f64,
}
impl SegmentSummary {
    #[inline]
    pub fn min_absolute_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.min_absolute_timestamp
    }
    #[inline]
    pub fn max_absolute_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.max_absolute_timestamp
    }
    #[inline]
    pub fn min_media_timestamp(&self) -> f64 {
        self.min_media_timestamp
    }
    #[inline]
    pub fn max_media_timestamp(&self) -> f64 {
        self.max_media_timestamp
    }
}
