Skip to main content

nominal_api/conjure/objects/scout/video/api/
file_summary.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct FileSummary {
16    #[serde(rename = "fileRid")]
17    file_rid: super::super::super::super::api::rids::VideoFileRid,
18    #[builder(custom(type = super::Bounds, convert = Box::new))]
19    #[serde(rename = "bounds")]
20    bounds: Box<super::Bounds>,
21}
22impl FileSummary {
23    /// Constructs a new instance of the type.
24    #[inline]
25    pub fn new(
26        file_rid: super::super::super::super::api::rids::VideoFileRid,
27        bounds: super::Bounds,
28    ) -> Self {
29        Self::builder().file_rid(file_rid).bounds(bounds).build()
30    }
31    #[inline]
32    pub fn file_rid(&self) -> &super::super::super::super::api::rids::VideoFileRid {
33        &self.file_rid
34    }
35    #[inline]
36    pub fn bounds(&self) -> &super::Bounds {
37        &*self.bounds
38    }
39}