Skip to main content

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