Struct consul_rs::agent::AgentService [−][src]
pub struct AgentService {}Show fields
pub Kind: Option<String>, pub ID: Option<String>, pub Service: Option<String>, pub Tags: Option<Vec<String>>, pub Meta: Option<HashMap<String, String>>, pub Port: Option<usize>, pub Address: Option<String>, pub TaggedAddresses: Option<HashMap<String, ServiceAddress>>, pub Weights: Option<AgentWeights>, pub EnableTagOverride: Option<bool>, pub CreateIndex: Option<u64>, pub ModifyIndex: Option<u64>, pub ContentHash: Option<String>, pub Proxy: Option<AgentServiceConnectProxyConfig>, pub Connect: Option<AgentServiceConnect>, pub Namespace: Option<String>, pub Datacenter: Option<String>,
Expand description
AgentService represents a service known to the agent
Fields
Kind: Option<String>
ID: Option<String>
Service: Option<String>
Tags: Option<Vec<String>>
Meta: Option<HashMap<String, String>>
Port: Option<usize>
Address: Option<String>
TaggedAddresses: Option<HashMap<String, ServiceAddress>>
Weights: Option<AgentWeights>
EnableTagOverride: Option<bool>
CreateIndex: Option<u64>
ModifyIndex: Option<u64>
ContentHash: Option<String>
Proxy: Option<AgentServiceConnectProxyConfig>
Connect: Option<AgentServiceConnect>
Namespace: Option<String>
NOTE: If we ever set the ContentHash outside of singular service lookup then we may need to include the Namespace in the hash. When we do, then we are in for lots of fun with test. For now though, ignoring it works well enough.
Datacenter: Option<String>
Datacenter is only ever returned and is ignored if presented.
Trait Implementations
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for AgentService
impl Send for AgentService
impl Sync for AgentService
impl Unpin for AgentService
impl UnwindSafe for AgentService
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more