nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Bounding timestamps for the frames within a segment. Includes datasetFileId for V2 channel-based API.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SegmentSummaryV2 {
    #[builder(default, into)]
    #[serde(rename = "datasetFileId", skip_serializing_if = "Option::is_none", default)]
    dataset_file_id: Option<conjure_object::Uuid>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "minAbsoluteTimestamp")]
    min_absolute_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "maxAbsoluteTimestamp")]
    max_absolute_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[serde(rename = "minMediaTimestamp")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_media_timestamp: f64,
    #[serde(rename = "maxMediaTimestamp")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_media_timestamp: f64,
}
impl SegmentSummaryV2 {
    /// The dataset file ID that this segment belongs to.
    #[inline]
    pub fn dataset_file_id(&self) -> Option<conjure_object::Uuid> {
        self.dataset_file_id.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn min_absolute_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.min_absolute_timestamp
    }
    #[inline]
    pub fn max_absolute_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.max_absolute_timestamp
    }
    #[inline]
    pub fn min_media_timestamp(&self) -> f64 {
        self.min_media_timestamp
    }
    #[inline]
    pub fn max_media_timestamp(&self) -> f64 {
        self.max_media_timestamp
    }
}