/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// AllocFileInfo holds information about a file inside the AllocDir
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct AllocFileInfo {
    #[serde(rename = "ModTime")]
    pub mod_time: chrono::DateTime<chrono::Utc>,

    #[serde(rename = "ContentType")]
    pub content_type: String,

    #[serde(rename = "Name")]
    pub name: String,

    #[serde(rename = "IsDir")]
    pub is_dir: bool,

    #[serde(rename = "Size")]
    pub size: i64,

    #[serde(rename = "FileMode")]
    pub file_mode: String,
}
