fastcomments_sdk/client/src/models/
patch_page_api_response.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 PatchPageApiResponse {
16    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
17    pub reason: Option<String>,
18    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
19    pub code: Option<String>,
20    #[serde(rename = "commentsUpdated", skip_serializing_if = "Option::is_none")]
21    pub comments_updated: Option<i64>,
22    #[serde(rename = "page", skip_serializing_if = "Option::is_none")]
23    pub page: Option<Box<models::ApiPage>>,
24    #[serde(rename = "status")]
25    pub status: String,
26}
27
28impl PatchPageApiResponse {
29    pub fn new(status: String) -> PatchPageApiResponse {
30        PatchPageApiResponse {
31            reason: None,
32            code: None,
33            comments_updated: None,
34            page: None,
35            status,
36        }
37    }
38}
39