fastcomments_sdk/client/src/models/
public_api_delete_comment_response.rs

1/*
2 * fastcomments
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use 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