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 CommentLogEntry {
    #[serde(rename = "d")]
    pub d: chrono::DateTime<chrono::FixedOffset>,
    #[serde(rename = "t")]
    pub t: models::CommentLogType,
    #[serde(rename = "da", skip_serializing_if = "Option::is_none")]
    pub da: Option<Box<models::CommentLogData>>,
}

impl CommentLogEntry {
    pub fn new(d: chrono::DateTime<chrono::FixedOffset>, t: models::CommentLogType) -> CommentLogEntry {
        CommentLogEntry {
            d,
            t,
            da: None,
        }
    }
}