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

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

/// ServiceRegistrationListStub represents all service registrations held within a
/// single namespace.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ServiceRegistrationListStub {
    /// Namespace details the namespace in which these services have been
    /// registered.
    #[serde(rename = "Namespace")]
    pub namespace: String,

    /// Services is a list of services found within the namespace.
    #[serde(
        rename = "Services",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub services: Vec<super::ServiceRegistrationStub>,
}
