/// Combines two boolean series point-wise using logical OR, producing true where either input is true and false otherwise.
#[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 OrSeries {
    #[builder(custom(type = super::BooleanSeries, convert = Box::new))]
    #[serde(rename = "left")]
    left: Box<super::BooleanSeries>,
    #[builder(custom(type = super::BooleanSeries, convert = Box::new))]
    #[serde(rename = "right")]
    right: Box<super::BooleanSeries>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::InterpolationConfiguration>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(
        rename = "interpolationConfiguration",
        skip_serializing_if = "Option::is_none",
        default
    )]
    interpolation_configuration: Option<Box<super::InterpolationConfiguration>>,
}
impl OrSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(left: super::BooleanSeries, right: super::BooleanSeries) -> Self {
        Self::builder().left(left).right(right).build()
    }
    #[inline]
    pub fn left(&self) -> &super::BooleanSeries {
        &*self.left
    }
    #[inline]
    pub fn right(&self) -> &super::BooleanSeries {
        &*self.right
    }
    /// Defaults to forward fill interpolation with a 1s interpolation radius
    #[deprecated(note = "Setting interpolation on this node is deprecated.\n")]
    #[inline]
    pub fn interpolation_configuration(
        &self,
    ) -> Option<&super::InterpolationConfiguration> {
        self.interpolation_configuration.as_ref().map(|o| &**o)
    }
}
