nominal_api/conjure/errors/datasource/api/
data_source_not_found.rs1#[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 DataSourceNotFound {
16 #[serde(rename = "dataSourceRid")]
17 data_source_rid: conjure_object::ResourceIdentifier,
18}
19impl DataSourceNotFound {
20 #[inline]
22 pub fn new(data_source_rid: conjure_object::ResourceIdentifier) -> Self {
23 Self::builder().data_source_rid(data_source_rid).build()
24 }
25 #[inline]
26 pub fn data_source_rid(&self) -> &conjure_object::ResourceIdentifier {
27 &self.data_source_rid
28 }
29}
30impl conjure_error::ErrorType for DataSourceNotFound {
31 #[inline]
32 fn code() -> conjure_error::ErrorCode {
33 conjure_error::ErrorCode::NotFound
34 }
35 #[inline]
36 fn name() -> &'static str {
37 "DataSource:DataSourceNotFound"
38 }
39 #[inline]
40 fn safe_args() -> &'static [&'static str] {
41 &["dataSourceRid"]
42 }
43}