nominal_api/conjure/objects/scout/compute/api/
duration_hours.rs1#[derive(
3 Debug,
4 Clone,
5 conjure_object::serde::Serialize,
6 conjure_object::serde::Deserialize,
7 PartialEq,
8 Eq,
9 PartialOrd,
10 Ord,
11 Hash
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct DurationHours {
17 #[builder(custom(type = super::IntegerConstant, convert = Box::new))]
18 #[serde(rename = "hours")]
19 hours: Box<super::IntegerConstant>,
20}
21impl DurationHours {
22 #[inline]
24 pub fn new(hours: super::IntegerConstant) -> Self {
25 Self::builder().hours(hours).build()
26 }
27 #[inline]
29 pub fn hours(&self) -> &super::IntegerConstant {
30 &*self.hours
31 }
32}