Skip to main content

nominal_api/conjure/errors/scout/compute/api/
missing_module_application.rs

1/// The requested module application could not be found.
2/// This may be because the reference is incorrect or the application is unavailable in the current execution context.
3#[derive(
4    Debug,
5    Clone,
6    conjure_object::serde::Serialize,
7    conjure_object::serde::Deserialize,
8    PartialEq,
9    Eq,
10    PartialOrd,
11    Ord,
12    Hash
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct MissingModuleApplication {
18    #[serde(rename = "moduleApplicationRid")]
19    module_application_rid: conjure_object::ResourceIdentifier,
20}
21impl MissingModuleApplication {
22    /// Constructs a new instance of the type.
23    #[inline]
24    pub fn new(module_application_rid: conjure_object::ResourceIdentifier) -> Self {
25        Self::builder().module_application_rid(module_application_rid).build()
26    }
27    #[inline]
28    pub fn module_application_rid(&self) -> &conjure_object::ResourceIdentifier {
29        &self.module_application_rid
30    }
31}
32impl conjure_error::ErrorType for MissingModuleApplication {
33    #[inline]
34    fn code() -> conjure_error::ErrorCode {
35        conjure_error::ErrorCode::InvalidArgument
36    }
37    #[inline]
38    fn name() -> &'static str {
39        "Compute:MissingModuleApplication"
40    }
41    #[inline]
42    fn safe_args() -> &'static [&'static str] {
43        &["moduleApplicationRid"]
44    }
45}