#[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::UtcTimestamp, convert = Box::new))]
#[serde(rename = "startingTimestamp")]
starting_timestamp: Box<super::UtcTimestamp>,
#[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 {
#[inline]
pub fn new(starting_timestamp: super::UtcTimestamp) -> Self {
Self::builder().starting_timestamp(starting_timestamp).build()
}
#[inline]
pub fn starting_timestamp(&self) -> &super::UtcTimestamp {
&*self.starting_timestamp
}
#[inline]
pub fn scale_parameter(&self) -> Option<&super::ScaleParameter> {
self.scale_parameter.as_ref().map(|o| &**o)
}
}