/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.1
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchReddit200ResponsePostsInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    #[serde(rename = "selftext", skip_serializing_if = "Option::is_none")]
    pub selftext: Option<String>,
    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
    pub author: Option<String>,
    #[serde(rename = "subreddit", skip_serializing_if = "Option::is_none")]
    pub subreddit: Option<String>,
    #[serde(rename = "score", skip_serializing_if = "Option::is_none")]
    pub score: Option<i32>,
    #[serde(rename = "num_comments", skip_serializing_if = "Option::is_none")]
    pub num_comments: Option<i32>,
    #[serde(rename = "created_utc", skip_serializing_if = "Option::is_none")]
    pub created_utc: Option<f64>,
    #[serde(rename = "permalink", skip_serializing_if = "Option::is_none")]
    pub permalink: Option<String>,
}

impl SearchReddit200ResponsePostsInner {
    pub fn new() -> SearchReddit200ResponsePostsInner {
        SearchReddit200ResponsePostsInner {
            id: None,
            title: None,
            selftext: None,
            author: None,
            subreddit: None,
            score: None,
            num_comments: None,
            created_utc: None,
            permalink: None,
        }
    }
}
