use crate::client::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeletedCommentResultComment {
#[serde(rename = "isDeleted", skip_serializing_if = "Option::is_none")]
pub is_deleted: Option<bool>,
#[serde(rename = "commentHTML")]
pub comment_html: String,
#[serde(rename = "commenterName")]
pub commenter_name: String,
#[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub user_id: Option<Option<String>>,
}
impl DeletedCommentResultComment {
pub fn new(comment_html: String, commenter_name: String) -> DeletedCommentResultComment {
DeletedCommentResultComment {
is_deleted: None,
comment_html,
commenter_name,
user_id: None,
}
}
}