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