Skip to main content

nominal_api_conjure/conjure/objects/comments/api/
comment_parent_comment.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    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 CommentParentComment {
17    #[serde(rename = "commentRid")]
18    comment_rid: super::CommentRid,
19}
20impl CommentParentComment {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new(comment_rid: super::CommentRid) -> Self {
24        Self::builder().comment_rid(comment_rid).build()
25    }
26    /// The resource identifier for the comment that the comment is replying to
27    #[inline]
28    pub fn comment_rid(&self) -> &super::CommentRid {
29        &self.comment_rid
30    }
31}