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

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

/// CSIMountOptions contain optional additional configuration that can be used
/// when specifying that a Volume should be used with VolumeAccessTypeMount.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct CsiMountOptions {
    /// FSType is an optional field that allows an operator to specify the type
    /// of the filesystem.
    #[serde(rename = "FSType")]
    pub fs_type: String,

    /// MountFlags contains additional options that may be used when mounting the
    /// volume by the plugin. This may contain sensitive data and should not be
    /// leaked.
    #[serde(
        rename = "MountFlags",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub mount_flags: Vec<String>,
}
