/// The requested module function could not be found.
/// This may be because the reference is incorrect or the function is unavailable in the current execution context.
#[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 MissingModuleFunction {
    #[builder(into)]
    #[serde(rename = "moduleName")]
    module_name: String,
    #[builder(into)]
    #[serde(rename = "moduleVersion")]
    module_version: String,
    #[builder(into)]
    #[serde(rename = "functionName")]
    function_name: String,
}
impl MissingModuleFunction {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        module_name: impl Into<String>,
        module_version: impl Into<String>,
        function_name: impl Into<String>,
    ) -> Self {
        Self::builder()
            .module_name(module_name)
            .module_version(module_version)
            .function_name(function_name)
            .build()
    }
    #[inline]
    pub fn module_name(&self) -> &str {
        &*self.module_name
    }
    #[inline]
    pub fn module_version(&self) -> &str {
        &*self.module_version
    }
    #[inline]
    pub fn function_name(&self) -> &str {
        &*self.function_name
    }
}
impl conjure_error::ErrorType for MissingModuleFunction {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:MissingModuleFunction"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &[]
    }
}
