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

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

/// RaftConfiguration is returned when querying for the current Raft configuration.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct RaftConfiguration {
    /// Servers has the list of servers in the Raft configuration.
    #[serde(
        rename = "Servers",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub servers: Vec<super::RaftServer>,

    /// Index has the Raft index of this configuration.
    #[serde(rename = "Index")]
    pub index: u64,
}
