/// Attempted an incompatible operation of units.
#[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 IncompatibleUnitOperation {
    #[serde(rename = "operation")]
    operation: super::UnitOperation,
    #[builder(default, list(item(type = super::super::super::units::api::UnitSymbol)))]
    #[serde(rename = "units", skip_serializing_if = "Vec::is_empty", default)]
    units: Vec<super::super::super::units::api::UnitSymbol>,
}
impl IncompatibleUnitOperation {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(operation: super::UnitOperation) -> Self {
        Self::builder().operation(operation).build()
    }
    #[inline]
    pub fn operation(&self) -> &super::UnitOperation {
        &self.operation
    }
    #[inline]
    pub fn units(&self) -> &[super::super::super::units::api::UnitSymbol] {
        &*self.units
    }
}
