nominal_api/conjure/errors/ingest/api/
dataset_file_not_found.rs1#[derive(
3 Debug,
4 Clone,
5 conjure_object::serde::Serialize,
6 conjure_object::serde::Deserialize,
7 PartialEq,
8 Eq,
9 PartialOrd,
10 Ord,
11 Hash
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct DatasetFileNotFound {
17 #[serde(rename = "datasetRid")]
18 dataset_rid: conjure_object::ResourceIdentifier,
19 #[serde(rename = "fileId")]
20 file_id: conjure_object::Uuid,
21}
22impl DatasetFileNotFound {
23 #[inline]
25 pub fn new(
26 dataset_rid: conjure_object::ResourceIdentifier,
27 file_id: conjure_object::Uuid,
28 ) -> Self {
29 Self::builder().dataset_rid(dataset_rid).file_id(file_id).build()
30 }
31 #[inline]
32 pub fn dataset_rid(&self) -> &conjure_object::ResourceIdentifier {
33 &self.dataset_rid
34 }
35 #[inline]
36 pub fn file_id(&self) -> conjure_object::Uuid {
37 self.file_id
38 }
39}
40impl conjure_error::ErrorType for DatasetFileNotFound {
41 #[inline]
42 fn code() -> conjure_error::ErrorCode {
43 conjure_error::ErrorCode::NotFound
44 }
45 #[inline]
46 fn name() -> &'static str {
47 "IngestService:DatasetFileNotFound"
48 }
49 #[inline]
50 fn safe_args() -> &'static [&'static str] {
51 &["datasetRid", "fileId"]
52 }
53}