#[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 CartesianUnitResult {
    #[builder(custom(type = super::UnitResult, convert = Box::new))]
    #[serde(rename = "x")]
    x: Box<super::UnitResult>,
    #[builder(custom(type = super::UnitResult, convert = Box::new))]
    #[serde(rename = "y")]
    y: Box<super::UnitResult>,
}
impl CartesianUnitResult {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(x: super::UnitResult, y: super::UnitResult) -> Self {
        Self::builder().x(x).y(y).build()
    }
    #[inline]
    pub fn x(&self) -> &super::UnitResult {
        &*self.x
    }
    #[inline]
    pub fn y(&self) -> &super::UnitResult {
        &*self.y
    }
}
