pub struct Service {Show 19 fields
pub task_name: Option<String>,
pub identity: Option<WorkloadIdentity>,
pub cluster: String,
pub tagged_addresses: HashMap<String, String>,
pub provider: String,
pub name: String,
pub port_label: Option<String>,
pub address_mode: Option<String>,
pub checks: Vec<ServiceCheck>,
pub check_restart: Option<CheckRestart>,
pub canary_meta: HashMap<String, String>,
pub tags: Vec<String>,
pub canary_tags: Option<Vec<String>>,
pub enable_tag_override: Option<bool>,
pub connect: Option<ConsulConnect>,
pub on_update: Option<String>,
pub weights: Option<ServiceWeights>,
pub address: String,
pub meta: HashMap<String, String>,
}
Expand description
Service represents a Nomad job-submitters view of a Consul or Nomad service.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§task_name: Option<String>
§identity: Option<WorkloadIdentity>
§cluster: String
Cluster is valid only for Nomad Enterprise with provider: consul
tagged_addresses: HashMap<String, String>
§provider: String
Provider defines which backend system provides the service registration, either “consul” (default) or “nomad”.
name: String
§port_label: Option<String>
§address_mode: Option<String>
§checks: Vec<ServiceCheck>
§check_restart: Option<CheckRestart>
§canary_meta: HashMap<String, String>
§enable_tag_override: Option<bool>
§connect: Option<ConsulConnect>
§on_update: Option<String>
§weights: Option<ServiceWeights>
§address: String
§meta: HashMap<String, String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more