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 ModerationPageSearchProjected {
    #[serde(rename = "urlId")]
    pub url_id: String,
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "title")]
    pub title: String,
    #[serde(rename = "commentCount")]
    pub comment_count: f64,
}

impl ModerationPageSearchProjected {
    pub fn new(url_id: String, url: String, title: String, comment_count: f64) -> ModerationPageSearchProjected {
        ModerationPageSearchProjected {
            url_id,
            url,
            title,
            comment_count,
        }
    }
}