nominal_api_conjure/conjure/errors/attachments/api/
attachments_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 conjure_object::log_safety::derive::LogSafe
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 AttachmentsNotFound {
17 #[builder(
18 default,
19 set(item(type = super::super::super::super::objects::api::rids::AttachmentRid))
20 )]
21 #[serde(
22 rename = "attachmentRids",
23 skip_serializing_if = "std::collections::BTreeSet::is_empty",
24 default
25 )]
26 attachment_rids: std::collections::BTreeSet<
27 super::super::super::super::objects::api::rids::AttachmentRid,
28 >,
29}
30impl AttachmentsNotFound {
31 #[inline]
33 pub fn new() -> Self {
34 Self::builder().build()
35 }
36 #[inline]
37 pub fn attachment_rids(
38 &self,
39 ) -> &std::collections::BTreeSet<
40 super::super::super::super::objects::api::rids::AttachmentRid,
41 > {
42 &self.attachment_rids
43 }
44}
45impl conjure_error::ErrorType for AttachmentsNotFound {
46 #[inline]
47 fn code() -> conjure_error::ErrorCode {
48 conjure_error::ErrorCode::NotFound
49 }
50 #[inline]
51 fn name() -> &'static str {
52 "Attachment:AttachmentsNotFound"
53 }
54 #[inline]
55 fn safe_args() -> &'static [&'static str] {
56 &["attachmentRids"]
57 }
58}