#[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 SegmentNotFound {
#[serde(rename = "videoRid")]
video_rid: super::super::super::super::super::objects::api::rids::VideoRid,
}
impl SegmentNotFound {
#[inline]
pub fn new(
video_rid: super::super::super::super::super::objects::api::rids::VideoRid,
) -> Self {
Self::builder().video_rid(video_rid).build()
}
#[inline]
pub fn video_rid(
&self,
) -> &super::super::super::super::super::objects::api::rids::VideoRid {
&self.video_rid
}
}
impl conjure_error::ErrorType for SegmentNotFound {
#[inline]
fn code() -> conjure_error::ErrorCode {
conjure_error::ErrorCode::NotFound
}
#[inline]
fn name() -> &'static str {
"Video:SegmentNotFound"
}
#[inline]
fn safe_args() -> &'static [&'static str] {
&["videoRid"]
}
}