nomad_client_rs/models/
alloc_file_info.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, Deserialize, Serialize)]
4pub struct AllocFileInfo {
5    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
6    pub name: Option<String>,
7    #[serde(rename = "IsDir", skip_serializing_if = "Option::is_none")]
8    pub is_dir: Option<bool>,
9    #[serde(rename = "Size", skip_serializing_if = "Option::is_none")]
10    pub size: Option<i64>,
11    #[serde(rename = "FileMode", skip_serializing_if = "Option::is_none")]
12    pub file_mode: Option<String>,
13    #[serde(rename = "ModTime", skip_serializing_if = "Option::is_none")]
14    pub mod_time: Option<String>,
15    #[serde(rename = "ContentType", skip_serializing_if = "Option::is_none")]
16    pub content_type: Option<String>,
17}