Skip to main content

nominal_api/conjure/errors/scout/notebook/api/
notebook_not_found.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct NotebookNotFound {
16    #[serde(rename = "notebookRid")]
17    notebook_rid: super::super::super::super::super::objects::scout::rids::api::NotebookRid,
18}
19impl NotebookNotFound {
20    /// Constructs a new instance of the type.
21    #[inline]
22    pub fn new(
23        notebook_rid: super::super::super::super::super::objects::scout::rids::api::NotebookRid,
24    ) -> Self {
25        Self::builder().notebook_rid(notebook_rid).build()
26    }
27    #[inline]
28    pub fn notebook_rid(
29        &self,
30    ) -> &super::super::super::super::super::objects::scout::rids::api::NotebookRid {
31        &self.notebook_rid
32    }
33}
34impl conjure_error::ErrorType for NotebookNotFound {
35    #[inline]
36    fn code() -> conjure_error::ErrorCode {
37        conjure_error::ErrorCode::NotFound
38    }
39    #[inline]
40    fn name() -> &'static str {
41        "Scout:NotebookNotFound"
42    }
43    #[inline]
44    fn safe_args() -> &'static [&'static str] {
45        &["notebookRid"]
46    }
47}