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

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

/// ServiceWeights is the jobspec block which configures how a service instance
/// is weighted in a DNS SRV request based on the service's health status.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ServiceWeights {
    #[serde(rename = "Passing")]
    pub passing: i64,

    #[serde(rename = "Warning")]
    pub warning: i64,
}
