/*
 * 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.4
 * 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 GetRedditSubreddits200ResponseSubredditsInner {
    /// Reddit subreddit ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Subreddit name without r/ prefix
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Subreddit title
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Subreddit URL path
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    /// Whether the subreddit is NSFW
    #[serde(rename = "over18", skip_serializing_if = "Option::is_none")]
    pub over18: Option<bool>,
}

impl GetRedditSubreddits200ResponseSubredditsInner {
    pub fn new() -> GetRedditSubreddits200ResponseSubredditsInner {
        GetRedditSubreddits200ResponseSubredditsInner {
            id: None,
            name: None,
            title: None,
            url: None,
            over18: None,
        }
    }
}
