fastcomments_sdk/client/src/models/
set_comment_text_result.rs1use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SetCommentTextResult {
16 #[serde(rename = "approved")]
17 pub approved: bool,
18 #[serde(rename = "commentHTML")]
19 pub comment_html: String,
20}
21
22impl SetCommentTextResult {
23 pub fn new(approved: bool, comment_html: String) -> SetCommentTextResult {
24 SetCommentTextResult {
25 approved,
26 comment_html,
27 }
28 }
29}
30