nominal_api/conjure/errors/comments/api/
empty_comment_content.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 Copy
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 EmptyCommentContent {}
17impl EmptyCommentContent {
18 #[inline]
20 pub fn new() -> Self {
21 Self::builder().build()
22 }
23}
24impl conjure_error::ErrorType for EmptyCommentContent {
25 #[inline]
26 fn code() -> conjure_error::ErrorCode {
27 conjure_error::ErrorCode::InvalidArgument
28 }
29 #[inline]
30 fn name() -> &'static str {
31 "Comments:EmptyCommentContent"
32 }
33 #[inline]
34 fn safe_args() -> &'static [&'static str] {
35 &[]
36 }
37}