fastcomments_sdk/client/src/models/
public_api_delete_comment_response.rs1use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PublicApiDeleteCommentResponse {
16 #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
17 pub comment: Option<Box<models::DeletedCommentResultComment>>,
18 #[serde(rename = "hardRemoved")]
19 pub hard_removed: bool,
20 #[serde(rename = "status")]
21 pub status: models::ApiStatus,
22}
23
24impl PublicApiDeleteCommentResponse {
25 pub fn new(hard_removed: bool, status: models::ApiStatus) -> PublicApiDeleteCommentResponse {
26 PublicApiDeleteCommentResponse {
27 comment: None,
28 hard_removed,
29 status,
30 }
31 }
32}
33