#[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 ExtractNumericFromStructSeries {
    #[builder(custom(type = super::StructSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::StructSeries>,
    #[builder(default, list(item(type = super::StringConstant)))]
    #[serde(rename = "fieldPath", skip_serializing_if = "Vec::is_empty", default)]
    field_path: Vec<super::StringConstant>,
    #[builder(default, into)]
    #[serde(rename = "dataType", skip_serializing_if = "Option::is_none", default)]
    data_type: Option<super::NumericDataType>,
}
impl ExtractNumericFromStructSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::StructSeries) -> Self {
        Self::builder().input(input).build()
    }
    #[inline]
    pub fn input(&self) -> &super::StructSeries {
        &*self.input
    }
    /// Path segments that are joined to locate a nested numeric field. Use dots to traverse
    /// objects (e.g. `a.b.c`) and 0-based brackets to index into arrays (e.g. `items[0].value`).
    /// A bare numeric name like `0` refers to an object key named "0"; use [0] to index
    /// into an array. Rows where the path is invalid or the value cannot be converted to the
    /// specified type are filtered out.
    #[inline]
    pub fn field_path(&self) -> &[super::StringConstant] {
        &*self.field_path
    }
    /// The type the numeric data will be cast to, defaults to FLOAT64
    #[inline]
    pub fn data_type(&self) -> Option<&super::NumericDataType> {
        self.data_type.as_ref().map(|o| &*o)
    }
}
