nomad_client_rs/models/
service_registration.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct ServiceRegistration {
5 #[serde(rename = "Address", skip_serializing_if = "Option::is_none")]
6 pub address: Option<String>,
7 #[serde(rename = "AllocID", skip_serializing_if = "Option::is_none")]
8 pub alloc_id: Option<String>,
9 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
10 pub create_index: Option<i32>,
11 #[serde(rename = "Datacenter", skip_serializing_if = "Option::is_none")]
12 pub datacenter: Option<String>,
13 #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
14 pub id: Option<String>,
15 #[serde(rename = "JobID", skip_serializing_if = "Option::is_none")]
16 pub job_id: Option<String>,
17 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
18 pub modify_index: Option<i32>,
19 #[serde(rename = "Namespace", skip_serializing_if = "Option::is_none")]
20 pub namespace: Option<String>,
21 #[serde(rename = "NodeID", skip_serializing_if = "Option::is_none")]
22 pub node_id: Option<String>,
23 #[serde(rename = "Port", skip_serializing_if = "Option::is_none")]
24 pub port: Option<i32>,
25 #[serde(rename = "ServiceName", skip_serializing_if = "Option::is_none")]
26 pub service_name: Option<String>,
27 #[serde(rename = "Tags", skip_serializing_if = "Option::is_none")]
28 pub tags: Option<Vec<String>>,
29}