foxclient 6.0.10

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.0.10
 * Contact: admin@orangefox.tech
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListResponseReleaseResponseDataInner {
    #[serde(rename = "_id")]
    pub _id: String,
    #[serde(rename = "archived")]
    pub archived: bool,
    #[serde(rename = "build_id", skip_serializing_if = "Option::is_none")]
    pub build_id: Option<String>,
    #[serde(rename = "date")]
    pub date: f64,
    #[serde(rename = "device_id")]
    pub device_id: String,
    #[serde(rename = "featured_text", skip_serializing_if = "Option::is_none")]
    pub featured_text: Option<String>,
    #[serde(rename = "filename")]
    pub filename: String,
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "is_featured")]
    pub is_featured: bool,
    #[serde(rename = "maintainer_id", skip_serializing_if = "Option::is_none")]
    pub maintainer_id: Option<String>,
    #[serde(rename = "md5")]
    pub md5: String,
    #[serde(rename = "size")]
    pub size: i64,
    #[serde(rename = "type")]
    pub r#type: String,
    #[serde(rename = "variant")]
    pub variant: String,
    #[serde(rename = "version")]
    pub version: String,
    #[serde(rename = "bugs", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub bugs: Option<Option<Vec<String>>>,
    #[serde(rename = "changelog")]
    pub changelog: Vec<String>,
    #[serde(rename = "mirrors")]
    pub mirrors: std::collections::HashMap<String, String>,
    #[serde(rename = "notes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub notes: Option<Option<String>>,
    #[serde(rename = "recovery_img")]
    pub recovery_img: Box<models::RecoveryImgResponse>,
    /// Total number of downloads recorded for this release.
    #[serde(rename = "total_downloads")]
    pub total_downloads: i64,
    #[serde(rename = "url")]
    pub url: String,
    /// Downloads in the last 7 UTC days (today plus the previous 6).
    #[serde(rename = "weekly_downloads")]
    pub weekly_downloads: i64,
}

impl ListResponseReleaseResponseDataInner {
    pub fn new(_id: String, archived: bool, date: f64, device_id: String, filename: String, id: String, is_featured: bool, md5: String, size: i64, r#type: String, variant: String, version: String, changelog: Vec<String>, mirrors: std::collections::HashMap<String, String>, recovery_img: models::RecoveryImgResponse, total_downloads: i64, url: String, weekly_downloads: i64) -> ListResponseReleaseResponseDataInner {
        ListResponseReleaseResponseDataInner {
            _id,
            archived,
            build_id: None,
            date,
            device_id,
            featured_text: None,
            filename,
            id,
            is_featured,
            maintainer_id: None,
            md5,
            size,
            r#type,
            variant,
            version,
            bugs: None,
            changelog,
            mirrors,
            notes: None,
            recovery_img: Box::new(recovery_img),
            total_downloads,
            url,
            weekly_downloads,
        }
    }
}