#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct DurationHours {
#[builder(custom(type = super::IntegerConstant, convert = Box::new))]
#[serde(rename = "hours")]
hours: Box<super::IntegerConstant>,
}
impl DurationHours {
#[inline]
pub fn new(hours: super::IntegerConstant) -> Self {
Self::builder().hours(hours).build()
}
#[inline]
pub fn hours(&self) -> &super::IntegerConstant {
&*self.hours
}
}