/// Time bounds for the video file. Used to update the series time bounds
#[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 TimeBounds {
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "start")]
    start: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "end")]
    end: Box<super::super::super::super::api::Timestamp>,
}
impl TimeBounds {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        start: super::super::super::super::api::Timestamp,
        end: super::super::super::super::api::Timestamp,
    ) -> Self {
        Self::builder().start(start).end(end).build()
    }
    #[inline]
    pub fn start(&self) -> &super::super::super::super::api::Timestamp {
        &*self.start
    }
    #[inline]
    pub fn end(&self) -> &super::super::super::super::api::Timestamp {
        &*self.end
    }
}
