fastcomments_sdk/client/src/models/
create_api_page_data.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 CreateApiPageData {
16    #[serde(rename = "accessibleByGroupIds", skip_serializing_if = "Option::is_none")]
17    pub accessible_by_group_ids: Option<Vec<String>>,
18    #[serde(rename = "rootCommentCount", skip_serializing_if = "Option::is_none")]
19    pub root_comment_count: Option<i64>,
20    #[serde(rename = "commentCount", skip_serializing_if = "Option::is_none")]
21    pub comment_count: Option<i64>,
22    #[serde(rename = "title")]
23    pub title: String,
24    #[serde(rename = "url")]
25    pub url: String,
26    #[serde(rename = "urlId")]
27    pub url_id: String,
28}
29
30impl CreateApiPageData {
31    pub fn new(title: String, url: String, url_id: String) -> CreateApiPageData {
32        CreateApiPageData {
33            accessible_by_group_ids: None,
34            root_comment_count: None,
35            comment_count: None,
36            title,
37            url,
38            url_id,
39        }
40    }
41}
42