/// Applies a conjunctive tag predicate to the series produced by the inner dataset. Resolved by threading tag
/// filters into channel specs and folding against known tag assignments; does not add a resolved numeric node.
#[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 FilteredDataset {
    #[builder(custom(type = super::Dataset, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Dataset>,
    #[builder(custom(type = super::TagPredicate, convert = Box::new))]
    #[serde(rename = "predicate")]
    predicate: Box<super::TagPredicate>,
}
impl FilteredDataset {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::Dataset, predicate: super::TagPredicate) -> Self {
        Self::builder().input(input).predicate(predicate).build()
    }
    /// The underlying dataset to filter.
    #[inline]
    pub fn input(&self) -> &super::Dataset {
        &*self.input
    }
    /// Conjunctive tag predicate used to keep matching series.
    #[inline]
    pub fn predicate(&self) -> &super::TagPredicate {
        &*self.predicate
    }
}
