fastcomments-sdk 3.0.0

Official FastComments Rust SDK (Typed API Client & Utilities)
Documentation
/*
 * fastcomments
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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,
        }
    }
}