nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// these values will not be updated after ingest time, to allow for resetting. The updated values are stored
/// implicitly through the segment timestamps.
#[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 NoTimestampManifest {
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "startingTimestamp")]
    starting_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::ScaleParameter>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "scaleParameter", skip_serializing_if = "Option::is_none", default)]
    scale_parameter: Option<Box<super::ScaleParameter>>,
}
impl NoTimestampManifest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(starting_timestamp: super::super::super::super::api::Timestamp) -> Self {
        Self::builder().starting_timestamp(starting_timestamp).build()
    }
    /// Specifies the original starting timestamp of the video.
    #[inline]
    pub fn starting_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.starting_timestamp
    }
    /// A field that specifies that the frame rate of the video does not match the frame rate of the camera | i.e. a slowed down or sped up video. Can specify either the camera frame rate or the absolute end time.
    #[inline]
    pub fn scale_parameter(&self) -> Option<&super::ScaleParameter> {
        self.scale_parameter.as_ref().map(|o| &**o)
    }
}