fastcomments-sdk 3.0.1

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 ModerationApiCommentLog {
    #[serde(rename = "date")]
    pub date: chrono::DateTime<chrono::FixedOffset>,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "actionName")]
    pub action_name: String,
    #[serde(rename = "messageHTML")]
    pub message_html: String,
}

impl ModerationApiCommentLog {
    pub fn new(date: chrono::DateTime<chrono::FixedOffset>, action_name: String, message_html: String) -> ModerationApiCommentLog {
        ModerationApiCommentLog {
            date,
            username: None,
            action_name,
            message_html,
        }
    }
}