/// Conjunction of two tag predicates (both must hold).
#[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 TagAnd {
    #[builder(custom(type = super::TagPredicate, convert = Box::new))]
    #[serde(rename = "left")]
    left: Box<super::TagPredicate>,
    #[builder(custom(type = super::TagPredicate, convert = Box::new))]
    #[serde(rename = "right")]
    right: Box<super::TagPredicate>,
}
impl TagAnd {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(left: super::TagPredicate, right: super::TagPredicate) -> Self {
        Self::builder().left(left).right(right).build()
    }
    #[inline]
    pub fn left(&self) -> &super::TagPredicate {
        &*self.left
    }
    #[inline]
    pub fn right(&self) -> &super::TagPredicate {
        &*self.right
    }
}
