foxclient 6.1.0

Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
Documentation
/*
 * Fox API
 *
 * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement.  To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit.  The requests may be logged for analytics and development purposes. 
 *
 * The version of the OpenAPI document: 6.1.0
 * Contact: admin@orangefox.tech
 * Generated by: https://openapi-generator.tech
 */

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

/// WikiPageShortResponse : A page without its body. FoxWiki fetches the whole set of these once and builds its navigation tree from them, so this must stay cheap.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WikiPageShortResponse {
    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub description: Option<Option<String>>,
    /// Always `false` on public responses — drafts are filtered out by the query.
    #[serde(rename = "draft")]
    pub draft: bool,
    /// Last path segment.
    #[serde(rename = "file_name")]
    pub file_name: String,
    #[serde(rename = "icon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub icon: Option<Option<String>>,
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "image", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub image: Option<Option<String>>,
    #[serde(rename = "last_updated")]
    pub last_updated: String,
    #[serde(rename = "noindex")]
    pub noindex: bool,
    /// Parent folder path, \"\" at the root.
    #[serde(rename = "parent_path")]
    pub parent_path: String,
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "title")]
    pub title: String,
    /// \"md\" or \"json\". Named `type` to match FoxWiki's `WikiPageShort`.
    #[serde(rename = "type")]
    pub r#type: String,
}

impl WikiPageShortResponse {
    /// A page without its body. FoxWiki fetches the whole set of these once and builds its navigation tree from them, so this must stay cheap.
    pub fn new(draft: bool, file_name: String, id: String, last_updated: String, noindex: bool, parent_path: String, path: String, title: String, r#type: String) -> WikiPageShortResponse {
        WikiPageShortResponse {
            description: None,
            draft,
            file_name,
            icon: None,
            id,
            image: None,
            last_updated,
            noindex,
            parent_path,
            path,
            title,
            r#type,
        }
    }
}