#[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 CurveFitOptions {
#[builder(custom(type = super::TimestampConstant, convert = Box::new))]
#[serde(rename = "startTime")]
start_time: Box<super::TimestampConstant>,
#[builder(custom(type = super::TimestampConstant, convert = Box::new))]
#[serde(rename = "endTime")]
end_time: Box<super::TimestampConstant>,
}
impl CurveFitOptions {
#[inline]
pub fn new(
start_time: super::TimestampConstant,
end_time: super::TimestampConstant,
) -> Self {
Self::builder().start_time(start_time).end_time(end_time).build()
}
#[inline]
pub fn start_time(&self) -> &super::TimestampConstant {
&*self.start_time
}
#[inline]
pub fn end_time(&self) -> &super::TimestampConstant {
&*self.end_time
}
}