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

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

/// ServiceRegistrationStub is the stub object describing an individual
/// namespaced service. The object is built in a manner which would allow us to
/// add additional fields in the future, if we wanted.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ServiceRegistrationStub {
    /// ServiceName is the human friendly name for this service as specified
    /// within Service.Name.
    #[serde(rename = "ServiceName")]
    pub service_name: String,

    /// Tags is a list of unique tags found for this service. The list is
    /// de-duplicated automatically by Nomad.
    #[serde(
        rename = "Tags",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub tags: Vec<String>,
}
