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

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

/// Events is a set of events for a corresponding index. Events returned for the
/// index depend on which topics are subscribed to when a request is made.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct Events {
    #[serde(rename = "Index")]
    pub index: u64,

    #[serde(
        rename = "Events",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub events: Vec<super::Event>,

    #[serde(rename = "Err")]
    pub err: String,
}
