Skip to main content

nominal_api/conjure/errors/ingest/api/
s3_path_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 S3PathNotFound {
16    #[builder(into)]
17    #[serde(rename = "s3Path")]
18    s3_path: String,
19}
20impl S3PathNotFound {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new(s3_path: impl Into<String>) -> Self {
24        Self::builder().s3_path(s3_path).build()
25    }
26    #[inline]
27    pub fn s3_path(&self) -> &str {
28        &*self.s3_path
29    }
30}
31impl conjure_error::ErrorType for S3PathNotFound {
32    #[inline]
33    fn code() -> conjure_error::ErrorCode {
34        conjure_error::ErrorCode::NotFound
35    }
36    #[inline]
37    fn name() -> &'static str {
38        "IngestService:S3PathNotFound"
39    }
40    #[inline]
41    fn safe_args() -> &'static [&'static str] {
42        &[]
43    }
44}