pub struct Service {Show 19 fields
pub checks: Vec<ServiceCheck>,
pub check_restart: Option<CheckRestart>,
pub cluster: String,
pub connect: Option<ConsulConnect>,
pub task_name: Option<String>,
pub weights: Option<ServiceWeights>,
pub tags: Vec<String>,
pub enable_tag_override: Option<bool>,
pub port_label: Option<String>,
pub address: String,
pub meta: HashMap<String, String>,
pub tagged_addresses: HashMap<String, String>,
pub on_update: Option<String>,
pub name: String,
pub canary_tags: Option<Vec<String>>,
pub address_mode: Option<String>,
pub canary_meta: HashMap<String, String>,
pub identity: Option<WorkloadIdentity>,
pub provider: 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§
§checks: Vec<ServiceCheck>
§check_restart: Option<CheckRestart>
§cluster: String
Cluster is valid only for Nomad Enterprise with provider: consul
connect: Option<ConsulConnect>
§task_name: Option<String>
§weights: Option<ServiceWeights>
§enable_tag_override: Option<bool>
§port_label: Option<String>
§address: String
§meta: HashMap<String, String>
§tagged_addresses: HashMap<String, String>
§on_update: Option<String>
§name: String
§address_mode: Option<String>
§canary_meta: HashMap<String, String>
§identity: Option<WorkloadIdentity>
§provider: String
Provider defines which backend system provides the service registration, either “consul” (default) or “nomad”.
Implementations§
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