/// Aggregated segment metadata for a video channel series
#[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 VideoChannelSegmentsMetadata {
    #[serde(rename = "numFrames")]
    num_frames: i32,
    #[serde(rename = "numSegments")]
    num_segments: i32,
    #[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 = "mediaDurationSeconds")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    media_duration_seconds: f64,
    #[serde(rename = "mediaFrameRate")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    media_frame_rate: f64,
}
impl VideoChannelSegmentsMetadata {
    #[inline]
    pub fn num_frames(&self) -> i32 {
        self.num_frames
    }
    #[inline]
    pub fn num_segments(&self) -> i32 {
        self.num_segments
    }
    #[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 media_duration_seconds(&self) -> f64 {
        self.media_duration_seconds
    }
    /// The average media frame rate (FPS) calculated as total frames / duration in seconds.
    #[inline]
    pub fn media_frame_rate(&self) -> f64 {
        self.media_frame_rate
    }
}
