foxclient 6.0.6

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.6
 * 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 NewReportRequest {
    #[serde(rename = "details")]
    pub details: String,
    #[serde(rename = "dmesg", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub dmesg: Option<Option<String>>,
    #[serde(rename = "logcat", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub logcat: Option<Option<String>>,
    #[serde(rename = "logs")]
    pub logs: std::collections::HashMap<String, String>,
    #[serde(rename = "screenshots")]
    pub screenshots: Vec<String>,
}

impl NewReportRequest {
    pub fn new(details: String, logs: std::collections::HashMap<String, String>, screenshots: Vec<String>) -> NewReportRequest {
        NewReportRequest {
            details,
            dmesg: None,
            logcat: None,
            logs,
            screenshots,
        }
    }
}