Skip to main content

nominal_api/conjure/objects/scout/compute/resolved/api/
forward_fill.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct ForwardFill {
16    #[builder(
17        custom(type = super::super::super::super::run::api::Duration, convert = Box::new)
18    )]
19    #[serde(rename = "limit")]
20    limit: Box<super::super::super::super::run::api::Duration>,
21}
22impl ForwardFill {
23    /// Constructs a new instance of the type.
24    #[inline]
25    pub fn new(limit: super::super::super::super::run::api::Duration) -> Self {
26        Self::builder().limit(limit).build()
27    }
28    #[inline]
29    pub fn limit(&self) -> &super::super::super::super::run::api::Duration {
30        &*self.limit
31    }
32}