/// The unit conversion could not be computed because the input unit cannot be converted
/// to the output unit.
#[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 UnitConversionInvalid {
    #[serde(rename = "inputUnit")]
    input_unit: super::super::super::super::super::objects::scout::units::api::UnitSymbol,
    #[serde(rename = "outputUnit")]
    output_unit: super::super::super::super::super::objects::scout::units::api::UnitSymbol,
}
impl UnitConversionInvalid {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input_unit: super::super::super::super::super::objects::scout::units::api::UnitSymbol,
        output_unit: super::super::super::super::super::objects::scout::units::api::UnitSymbol,
    ) -> Self {
        Self::builder().input_unit(input_unit).output_unit(output_unit).build()
    }
    #[inline]
    pub fn input_unit(
        &self,
    ) -> &super::super::super::super::super::objects::scout::units::api::UnitSymbol {
        &self.input_unit
    }
    #[inline]
    pub fn output_unit(
        &self,
    ) -> &super::super::super::super::super::objects::scout::units::api::UnitSymbol {
        &self.output_unit
    }
}
impl conjure_error::ErrorType for UnitConversionInvalid {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:UnitConversionInvalid"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &[]
    }
}
