nominal_api/conjure/objects/scout/compute/api/
curve_fit_options.rs1#[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 CurveFitOptions {
16 #[builder(custom(type = super::TimestampConstant, convert = Box::new))]
17 #[serde(rename = "startTime")]
18 start_time: Box<super::TimestampConstant>,
19 #[builder(custom(type = super::TimestampConstant, convert = Box::new))]
20 #[serde(rename = "endTime")]
21 end_time: Box<super::TimestampConstant>,
22}
23impl CurveFitOptions {
24 #[inline]
26 pub fn new(
27 start_time: super::TimestampConstant,
28 end_time: super::TimestampConstant,
29 ) -> Self {
30 Self::builder().start_time(start_time).end_time(end_time).build()
31 }
32 #[inline]
33 pub fn start_time(&self) -> &super::TimestampConstant {
34 &*self.start_time
35 }
36 #[inline]
37 pub fn end_time(&self) -> &super::TimestampConstant {
38 &*self.end_time
39 }
40}