radarr_api_rs/models/
root_folder_resource.rs

1/*
2 * Radarr
3 *
4 * Radarr API docs
5 *
6 * The version of the OpenAPI document: 3.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RootFolderResource {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub path: Option<Option<String>>,
20    #[serde(rename = "accessible", skip_serializing_if = "Option::is_none")]
21    pub accessible: Option<bool>,
22    #[serde(rename = "freeSpace", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub free_space: Option<Option<i64>>,
24    #[serde(rename = "unmappedFolders", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub unmapped_folders: Option<Option<Vec<crate::models::UnmappedFolder>>>,
26}
27
28impl RootFolderResource {
29    pub fn new() -> RootFolderResource {
30        RootFolderResource {
31            id: None,
32            path: None,
33            accessible: None,
34            free_space: None,
35            unmapped_folders: None,
36        }
37    }
38}
39
40