/// The following function reference is undefined in the module.
#[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 UndefinedModuleFunctionReference {
    #[builder(into)]
    #[serde(rename = "invalidFunctionReference")]
    invalid_function_reference: String,
}
impl UndefinedModuleFunctionReference {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(invalid_function_reference: impl Into<String>) -> Self {
        Self::builder().invalid_function_reference(invalid_function_reference).build()
    }
    #[inline]
    pub fn invalid_function_reference(&self) -> &str {
        &*self.invalid_function_reference
    }
}
impl conjure_error::ErrorType for UndefinedModuleFunctionReference {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Module:UndefinedModuleFunctionReference"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &[]
    }
}
