/// The requested time bounds do not overlap with any video segments.
#[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 NoSegmentsInBounds {
    #[serde(rename = "videoRid")]
    video_rid: conjure_object::ResourceIdentifier,
    #[builder(
        custom(
            type = super::super::super::super::super::objects::scout::video::api::Bounds,
            convert = Box::new
        )
    )]
    #[serde(rename = "requestedBounds")]
    requested_bounds: Box<
        super::super::super::super::super::objects::scout::video::api::Bounds,
    >,
}
impl NoSegmentsInBounds {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        video_rid: conjure_object::ResourceIdentifier,
        requested_bounds: super::super::super::super::super::objects::scout::video::api::Bounds,
    ) -> Self {
        Self::builder().video_rid(video_rid).requested_bounds(requested_bounds).build()
    }
    #[inline]
    pub fn video_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.video_rid
    }
    #[inline]
    pub fn requested_bounds(
        &self,
    ) -> &super::super::super::super::super::objects::scout::video::api::Bounds {
        &*self.requested_bounds
    }
}
impl conjure_error::ErrorType for NoSegmentsInBounds {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::NotFound
    }
    #[inline]
    fn name() -> &'static str {
        "Video:NoSegmentsInBounds"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["requestedBounds", "videoRid"]
    }
}
