nominal_api/conjure/objects/scout/video/api/
create_segments_v2_response.rs1#[derive(
3 Debug,
4 Clone,
5 conjure_object::serde::Serialize,
6 conjure_object::serde::Deserialize,
7 conjure_object::private::DeriveWith
8)]
9#[serde(crate = "conjure_object::serde")]
10#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
11#[conjure_object::private::staged_builder::staged_builder]
12#[builder(crate = conjure_object::private::staged_builder, update, inline)]
13pub struct CreateSegmentsV2Response {
14 #[builder(default, list(item(type = super::SegmentV2)))]
15 #[serde(rename = "segments", skip_serializing_if = "Vec::is_empty", default)]
16 segments: Vec<super::SegmentV2>,
17}
18impl CreateSegmentsV2Response {
19 #[inline]
21 pub fn new() -> Self {
22 Self::builder().build()
23 }
24 #[inline]
25 pub fn segments(&self) -> &[super::SegmentV2] {
26 &*self.segments
27 }
28}