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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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